Description Usage Arguments Value Examples
Draw distribution map from data frame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | map_distribution(
df,
z_limits = c(0, 100),
z_breaks = c(10, 25, 50, 75, 100),
z_min = 1,
color_not_present = "blue",
size_not_present = 1,
size_present = 8,
base_size = 14,
map_title = "",
map_tag = "",
legend_position = c(0.15, 0.25),
legend_title = "%"
)
|
df |
Dataframe having at least 3 columns z for the quantity to be mapped, longitude, latitude |
z_limits |
Limits for the legend |
z_breaks |
Breaks for the legend |
z_min |
Lower limit below which the location is represented by a cross |
color_not_present |
Color used to display points where the z is below z_min |
size_not_present |
Size used to display points where the z is below z_min |
size_present |
Maximum size used to display points where the z is above z_min |
base_size |
Font size for the theme (can increase to make axes legends and titles bigger) |
map_title |
Title of the map |
map_tag |
Tag ("A", "B") to be displayed at top right |
legend_position |
Position of the legend |
legend_title |
Title of the legend |
A map as a ggplot object
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.