![]() Although this projection is the de facto standard for interactive web-based mapping, it lacks the equal-area property, which is important for many thematic maps, especially choropleths (see examples from tm_shape). The map is always projected according to the Web Mercator projection. There are a couple of constraints in comparison to "plot": With RMarkdown, it is possible to publish it to an HTML page. This mode generates a leaflet widget, which can also be directly obtained with tmap_leaflet. See also tm_view for options related to the "view" mode. Maps are fully interactive with tiles from OpenStreetMap or other map providers (see tm_tiles). Thematic maps are viewed interactively in the web browser or RStudio's Viewer pane. It is recommended for saving static maps (see tmap_save). This is the default mode, and supports all tmap's features, such as small multiples (see tm_facets) and extensive layout settings (see tm_layout). Thematic maps are shown in the graphics device. Usage tmap_mode(mode = c("plot", "view")) It is recommended to use tmap_mode in scripts and ttm/ ttmp in the console. The function ttmp stands for toggle thematic map and print last map: it does the same as ttm followed by tmap_last in order words, it shows the last map in the other mode. The convenient function ttm, which stands for toggle thematic map, is a toggle switch between the two modes. The function tmap_mode is a wrapper to set this global option. The global option tmap.mode determines the whether thematic maps are plot in the graphics device, or shown as an interactive leaflet map (see also tmap_options. ![]() Set tmap mode to static plotting or interactive viewing. Set tmap mode to static plotting or interactive viewing Description tm_view: Options for the interactive tmap viewer.tm_mouse_coordinates: Mouse coordinates.tm_iso: Draw iso (contour) lines with labels.tm_grid: Coordinate grid / graticule lines.tmap_style_catalogue: Create a style catalogue.tmap_style: Set or get the default tmap style.tmap-package: Thematic Map Visualization.tmap_mode: Set tmap mode to static plotting or interactive viewing. ![]() tmap_leaflet: Create a leaflet widget from a tmap object.tmap_last: Retrieve the last map to be modified or created.tmap_arrange: Arrange small multiples in grid layout.theme_ps: ggplot2 theme for proportional symbols.renderTmap: Wrapper functions for using tmap in shiny.reexports: Objects exported from other packages.metro: Spatial data of metropolitan areas.land: Spatial data of global land cover.deprecated_functions: Deprecated tmap functions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |