Description Usage Arguments Value Examples
Generate density plots on the same graph, grouped by a dimension of choice
1 |
starsObj |
stars object |
attr |
attribute of interest |
dim |
grouping dimension |
plotTitle |
title of plot |
y_reverse |
should the y axis be reversed? |
sd |
if TRUE (the default), the range of the x axis is within three standard deviations of the mean, if FALSE the range of the x axis is the minimum and maximum of the attribute |
... |
arguments passed to scale_y_continuous() or scale_y_reverse() |
a gg or ggplot object
1 2 3 4 5 | ridgelineBy(GISTEMP_Decadal, 1, 3, "Ridgeline", y_reverse = TRUE, breaks = seq(1970,2010,10))
# can subset stars objects by sf objects, such as countries from the rnaturalearth package
ridgelineBy(GISTEMP_Decadal[rnaturalearth::ne_countries(country = "Australia", returnclass = "sf")],
1, 3, "Australia Ridgeline", breaks = seq(1970,2010,10))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.