Description Usage Arguments Value
Create a leaflet map with a diverging color scale (e.g. slopes with diverging color scale for positive/negative) Takes a data frame of values and creates a leaflet map with dot at the co-ordinates of the plot and a diverging color scale
1 2 3 4 5 6 7 8 9 10 | stfl_plot_map_est_dscale(
data,
label = NULL,
circle_radius = 20,
scale_range = c(-0.05, 0.05),
scale_name = "Scale name",
Value.var = "estimate",
LONGITUDE.var = "LONGITUDE",
LATITUDE.var = "LATITUDE"
)
|
data |
Data frame with values, latitude, longitude to plot, The variable names in the data.frame
containing these variables are in |
label |
Label to be displayed for each point. If this is NULL, then a default label of the station number (extracted from the data data.frame) will be created. To stop labels, set this argument to a null string, i.e. label=”. |
circle_radius |
Size of the circle to be plotted. You need to set the radius using the
output metric of interest. For example, if you want to plot the slopes computed using the LMrob method, the
|
scale_range |
Endpoints of the diverging color scale. The centre of the scale will be set to the average of the end points.
Values outside the |
scale_name |
Name of the scale legend |
Value.var |
Name of the Y variable to plot |
LONGITUDE.var |
Name of variable in data that is longitude |
LATITUDE.var |
Name of variabel in data that is latitude |
leaflet map.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.