Package: tidyterra 0.6.1

tidyterra: 'tidyverse' Methods and 'ggplot2' Helpers for 'terra' Objects

Extension of the 'tidyverse' for 'SpatRaster' and 'SpatVector' objects of the 'terra' package. It includes also new 'geom_' functions that provide a convenient way of visualizing 'terra' objects with 'ggplot2'.

Authors:Diego Hernangómez [aut, cre, cph], Dewey Dunnington [ctb], ggplot2 authors [cph]

tidyterra_0.6.1.tar.gz
tidyterra_0.6.1.zip(r-4.5)tidyterra_0.6.1.zip(r-4.4)tidyterra_0.6.1.zip(r-4.3)
tidyterra_0.6.1.tgz(r-4.4-any)tidyterra_0.6.1.tgz(r-4.3-any)
tidyterra_0.6.1.tar.gz(r-4.5-noble)tidyterra_0.6.1.tar.gz(r-4.4-noble)
tidyterra_0.6.1.tgz(r-4.4-emscripten)tidyterra_0.6.1.tgz(r-4.3-emscripten)
tidyterra.pdf |tidyterra.html
tidyterra/json (API)
NEWS

# Install 'tidyterra' in R:
install.packages('tidyterra', repos = c('https://dieghernan.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/dieghernan/tidyterra/issues

Datasets:

On CRAN:

terraggplot-extensionr-spatialrspatial

12.88 score 172 stars 21 packages 1.5k scripts 7.0k downloads 167 exports 49 dependencies

Last updated 1 months agofrom:984635a85d. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 06 2024
R-4.5-winOKNov 06 2024
R-4.5-linuxOKNov 06 2024
R-4.4-winOKNov 06 2024
R-4.4-macOKNov 06 2024
R-4.3-winOKNov 06 2024
R-4.3-macOKNov 06 2024

Exports:%>%aesafter_statanti_joinarrangeas_coordinatesas_sfas_spatrasteras_spatvectoras_tibbleautoplotbind_spat_colsbind_spat_rowscompare_spatrasterscountcross_blended.colorscross_blended.colors2distinctdrop_nafillfilterfortifyfull_joingeom_spatrastergeom_spatraster_contourgeom_spatraster_contour_filledgeom_spatraster_contour_textgeom_spatraster_rgbgeom_spatvectorgeom_spatvector_labelgeom_spatvector_textget_coltab_palglimpsegrass.colorsgroup_bygroup_by_drop_defaultgroup_datagroup_indicesgroup_keysgroup_rowsgroup_sizegroup_varsgroupshypso.colorshypso.colors2inner_joinis_grouped_spatvectoris_regular_gridleft_joinmutaten_groupspivot_longerpivot_widerprincess.colorspullpull_crsrelocaterenamerename_withreplace_naright_joinrowwisescale_color_coltabscale_color_cross_blended_bscale_color_cross_blended_cscale_color_cross_blended_dscale_color_cross_blended_tint_bscale_color_cross_blended_tint_cscale_color_cross_blended_tint_dscale_color_grass_bscale_color_grass_cscale_color_grass_dscale_color_hypso_bscale_color_hypso_cscale_color_hypso_dscale_color_hypso_tint_bscale_color_hypso_tint_cscale_color_hypso_tint_dscale_color_princess_bscale_color_princess_cscale_color_princess_dscale_color_terrain_bscale_color_terrain_cscale_color_terrain_dscale_color_whitebox_bscale_color_whitebox_cscale_color_whitebox_dscale_color_wiki_bscale_color_wiki_cscale_color_wiki_dscale_colour_coltabscale_colour_cross_blended_bscale_colour_cross_blended_cscale_colour_cross_blended_dscale_colour_cross_blended_tint_bscale_colour_cross_blended_tint_cscale_colour_cross_blended_tint_dscale_colour_grass_bscale_colour_grass_cscale_colour_grass_dscale_colour_hypso_bscale_colour_hypso_cscale_colour_hypso_dscale_colour_hypso_tint_bscale_colour_hypso_tint_cscale_colour_hypso_tint_dscale_colour_princess_bscale_colour_princess_cscale_colour_princess_dscale_colour_terrain_bscale_colour_terrain_cscale_colour_terrain_dscale_colour_whitebox_bscale_colour_whitebox_cscale_colour_whitebox_dscale_colour_wiki_bscale_colour_wiki_cscale_colour_wiki_dscale_fill_coltabscale_fill_cross_blended_bscale_fill_cross_blended_cscale_fill_cross_blended_dscale_fill_cross_blended_tint_bscale_fill_cross_blended_tint_cscale_fill_cross_blended_tint_dscale_fill_grass_bscale_fill_grass_cscale_fill_grass_dscale_fill_hypso_bscale_fill_hypso_cscale_fill_hypso_dscale_fill_hypso_tint_bscale_fill_hypso_tint_cscale_fill_hypso_tint_dscale_fill_princess_bscale_fill_princess_cscale_fill_princess_dscale_fill_terrain_bscale_fill_terrain_cscale_fill_terrain_dscale_fill_whitebox_bscale_fill_whitebox_cscale_fill_whitebox_dscale_fill_wiki_bscale_fill_wiki_cscale_fill_wiki_dselectsemi_joinsliceslice_colrowsslice_colsslice_headslice_maxslice_minslice_rowsslice_sampleslice_tailstat_spat_coordinatesstat_spatrasterstat_spatvectorsummarisesummarizetallytransmuteungroupwhitebox.colorswiki.colors

Dependencies:classclassIntclicolorspacecpp11data.tableDBIdplyre1071fansifarvergenericsggplot2gluegtableisobandKernSmoothlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigproxypurrrR6RColorBrewerRcpprlangs2scalessfstringistringrterratibbletidyrtidyselectunitsutf8vctrsviridisLitewithrwk

Using the tidyverse with terra objects: the tidyterra package

Rendered fromtidyterra.Rmdusingknitr::rmarkdownon Nov 06 2024.

Last update: 2024-05-27
Started: 2022-05-06

Welcome to tidyterra

Rendered fromwelcome.Rmdusingknitr::rmarkdownon Nov 06 2024.

Last update: 2024-07-23
Started: 2023-07-31

Readme and manuals

Help Manual

Help pageTopics
Order a 'SpatVector' using column valuesarrange.SpatVector
Get cell number, row and column from a 'SpatRaster'as_coordinates
Coerce a 'SpatVector' to a 'sf' objectas_sf
Coerce a data frame to 'SpatRaster'as_spatraster
Method for coercing objects to 'SpatVector'as_spatvector as_spatvector.data.frame as_spatvector.sf as_spatvector.sfc as_spatvector.SpatVector
Coerce a 'SpatVector' or 'SpatRaster' object to data framesas_tibble.Spat as_tibble.SpatRaster as_tibble.SpatVector
Create a complete ggplot for Spat* objectsautoplot.Spat autoplot.SpatRaster autoplot.SpatVector
Bind multiple 'SpatVector' 'sf' and data frames objects by columnbind_cols.SpatVector bind_spat_cols
Bind multiple 'SpatVector', 'sf/sfc' and data frames objects by rowbind.Spat bind_rows.SpatVector bind_spat_rows
Compare attributes of two 'SpatRaster' objectscompare_spatrasters
Count the observations in each 'SpatVector' groupcount.SpatVector tally.SpatVector
Cross-blended hypsometric tintscross_blended_hypsometric_tints_db
Keep distinct/unique rows and geometries of 'SpatVector' objectsdistinct.SpatVector
Drop attributes of Spat* objects containing missing valuesdrop_na.Spat drop_na.SpatRaster drop_na.SpatVector
Fill in missing values with previous or next value on a 'SpatVector'fill.SpatVector
Filtering joins for 'SpatVector' objectsanti_join.SpatVector filter-joins.SpatVector semi_join.SpatVector
Subset cells/geometries of Spat* objectsfilter.Spat filter.SpatRaster filter.SpatVector
Fortify Spat* Objectsfortify.Spat fortify.SpatRaster fortify.SpatVector
Plot 'SpatRaster' contoursgeom_spatraster_contour geom_spatraster_contour_filled geom_spatraster_contour_text geom_spat_contour
Visualise 'SpatRaster' objectsgeom_spatraster stat_spatraster
Visualise 'SpatRaster' objects as imagesgeom_spatraster_rgb
Visualise 'SpatVector' objectsgeom_spatvector geom_spatvector_label geom_spatvector_text ggspatvector stat_spatvector
Get a nice glimpse of your Spat* objectsglimpse.Spat glimpse.SpatRaster glimpse.SpatVector
GRASS color tablesgrass_db
Group a 'SpatVector' by one or more variablesgroup-by.SpatVector group_by.SpatVector ungroup.SpatVector
Hypsometric palettes databasehypsometric_tints_db
Check if x and y positions conforms a regular gridis_regular_grid
Mutating joins for 'SpatVector' objectsfull_join.SpatVector inner_join.SpatVector left_join.SpatVector mutate-joins.SpatVector right_join.SpatVector
Create, modify, and delete cell values/layers/attributes of Spat* objectsmutate.Spat mutate.SpatRaster mutate.SpatVector transmute.Spat transmute.SpatRaster transmute.SpatVector
Pivot 'SpatVector' from wide to longpivot_longer.SpatVector
Pivot 'SpatVector' from long to widepivot_wider.SpatVector
Princess palettes databaseprincess_db
Extract CRS on WKT formatpull_crs
Extract a single layer/attributepull.Spat pull.SpatRaster pull.SpatVector
Change layer/attribute orderrelocate.Spat relocate.SpatRaster relocate.SpatVector
Rename layers/attributesrename.Spat rename.SpatRaster rename.SpatVector rename_with.SpatRaster rename_with.SpatVector
Replace 'NA's with specified valuesreplace_na.Spat replace_na.SpatRaster replace_na.SpatVector
Group 'SpatVector' objects by rowsrowwise.SpatVector
Gradient scales from *Wikipedia* color schemesscale_color_coltab scale_color_wiki_b scale_color_wiki_c scale_color_wiki_d scale_colour_wiki_b scale_colour_wiki_c scale_colour_wiki_d scale_fill_wiki_b scale_fill_wiki_c scale_fill_wiki_d scale_wiki wiki.colors
Discrete scales based in the color table of a 'SpatRaster'get_coltab_pal scale_colour_coltab scale_coltab scale_fill_coltab
Cross blended hypsometric tints scalescross_blended.colors cross_blended.colors2 scale_color_cross_blended_b scale_color_cross_blended_c scale_color_cross_blended_d scale_color_cross_blended_tint_b scale_color_cross_blended_tint_c scale_color_cross_blended_tint_d scale_colour_cross_blended_b scale_colour_cross_blended_c scale_colour_cross_blended_d scale_colour_cross_blended_tint_b scale_colour_cross_blended_tint_c scale_colour_cross_blended_tint_d scale_cross_blended scale_fill_cross_blended_b scale_fill_cross_blended_c scale_fill_cross_blended_d scale_fill_cross_blended_tint_b scale_fill_cross_blended_tint_c scale_fill_cross_blended_tint_d
GRASS scalesgrass.colors scale_color_grass_b scale_color_grass_c scale_color_grass_d scale_colour_grass_b scale_colour_grass_c scale_colour_grass_d scale_fill_grass_b scale_fill_grass_c scale_fill_grass_d scale_grass
Gradient scales for representing hypsometry and bathymetryhypso.colors hypso.colors2 scale_color_hypso_b scale_color_hypso_c scale_color_hypso_d scale_color_hypso_tint_b scale_color_hypso_tint_c scale_color_hypso_tint_d scale_colour_hypso_b scale_colour_hypso_c scale_colour_hypso_d scale_colour_hypso_tint_b scale_colour_hypso_tint_c scale_colour_hypso_tint_d scale_fill_hypso_b scale_fill_hypso_c scale_fill_hypso_d scale_fill_hypso_tint_b scale_fill_hypso_tint_c scale_fill_hypso_tint_d scale_hypso
Gradient scales from princess color schemesprincess.colors scale_color_princess_b scale_color_princess_c scale_color_princess_d scale_colour_princess_b scale_colour_princess_c scale_colour_princess_d scale_fill_princess_b scale_fill_princess_c scale_fill_princess_d scale_princess
Terrain colour scales from 'grDevices'scale_color_terrain_b scale_color_terrain_c scale_color_terrain_d scale_colour_terrain_b scale_colour_terrain_c scale_colour_terrain_d scale_fill_terrain_b scale_fill_terrain_c scale_fill_terrain_d scale_terrain
Gradient scales from *WhiteboxTools* color schemesscale_color_whitebox_b scale_color_whitebox_c scale_color_whitebox_d scale_colour_whitebox_b scale_colour_whitebox_c scale_colour_whitebox_d scale_fill_whitebox_b scale_fill_whitebox_c scale_fill_whitebox_d scale_whitebox whitebox.colors
Subset layers/attributes of Spat* objectsselect.Spat select.SpatRaster select.SpatVector
Subset cells/rows/columns/geometries using their positionsslice.Spat slice.SpatRaster slice.SpatVector slice_colrows slice_colrows.SpatRaster slice_cols slice_cols.SpatRaster slice_head.SpatRaster slice_head.SpatVector slice_max.SpatRaster slice_max.SpatVector slice_min.SpatRaster slice_min.SpatVector slice_rows slice_rows.SpatRaster slice_sample.SpatRaster slice_sample.SpatVector slice_tail.SpatRaster slice_tail.SpatVector
Summarise each group of a 'SpatVector' down to one geometrysummarise.SpatVector summarize.SpatVector
Updated topographic information on Auckland's Maungawhau volcanovolcano2