Skip to content

cran/dots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dots

R-CMD-check

dots provides tools to make dot density maps.

Installation

You can install the development version of dots from GitHub with:

remotes::install_github('christopherkenny/dots')

Example

The main function in dots is dots().

library(dots)
library(sf)
#> Linking to GEOS 3.9.1, GDAL 3.4.3, PROJ 7.2.1; sf_use_s2() is TRUE
library(ggplot2)
data('suffolk')
dots::dots(suffolk, c(pop_black, pop_white), divisor = 1000) + 
  scale_color_viridis_d() + 
  theme_void()

You can also use dots_points() to only make the randomized points.

dots::dots_points(suffolk, c(pop_black, pop_white), divisor = 1000) |> 
  ggplot() + 
  geom_sf(data = suffolk) + 
  geom_sf(aes(color = dots_type)) + 
  scale_color_viridis_d() + 
  theme_void()

About

❗ This is a read-only mirror of the CRAN R package repository. dots — Dot Density Maps. Homepage: https://github.com/christopherkenny/dotshttp://christophertkenny.com/dots/ Report bugs for this package: https://github.com/christopherkenny/dots/issues

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages