Description Usage Arguments Aesthetics Cosmetic Tips Examples
View source: R/stat_occurrence.R
Plots a time series as a dot plot
1 2 |
mapping |
mapping |
data |
df |
show.legend |
logical |
inherit.aes |
logical |
na.rm |
logical |
bandwidth |
bandwidth |
... |
more functions For rare events, it's convenient to have the count of events encoded in the chart itself. A bar chart requires the user to perceive the y axis which this does not. |
x, y
The minimalist look can be achieved by appending the
following chunk of code to the output object:
+
xlab(NULL) +
ylab(NULL) +
scale_fill_continuous(low = 'green', high = 'red') +
theme(
axis.text.y = element_blank(),
axis.ticks.y = element_blank(),
legend.position = 'none',
strip.background = element_blank(),
panel.background = element_blank(),
panel.border = element_blank(),
panel.grid = element_blank(),
panel.border = element_blank()
) +
coord_fixed(ylim = c(0,1 + max(dfData$y)))
coord_fixed can provide a balance to the aspect ratio of the chart.
1 2 3 4 5 6 7 8 |
Loading required package: ggplot2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.