View source: R/stat_iconarray.R
stat_countgrid | R Documentation |
Arrange objects for the number entered 'x'
stat_countgrid(mapping = NULL, data = NULL,
geom = "point", position = "identity", ...,
n_col = 10, show.legend = NA, inherit.aes = TRUE)
mapping |
Set of aesthetic mappings created by |
data |
data to be displayed in this layer |
geom |
geometric object to use to display the data |
position |
Position adjustment, either as a string naming the adjustment
(e.g. |
n_col |
number of rows for grid |
show.legend |
logical. Should this layer be included in the legends? NA, the default, includes if any aesthetics are mapped. FALSE never includes, and TRUE always includes. It can also be a named logical vector to finely select the aesthetics to display. |
inherit.aes |
The position adjustment to use for overlappling points on this layer |
library(ggsomestat)
HEC <- as.data.frame(HairEyeColor)
ggplot(HEC, aes(y=Freq, colour=Sex))+
stat_countgrid(shape=15)+
facet_grid(Hair~Eye, labeller = label_both)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.