stat_countgrid: Icon array

View source: R/stat_iconarray.R

stat_countgridR Documentation

Icon array

Description

Arrange objects for the number entered 'x'

Usage

stat_countgrid(mapping = NULL, data = NULL,
  geom = "point", position = "identity", ...,
  n_col = 10, show.legend = NA, inherit.aes = TRUE)

Arguments

mapping

Set of aesthetic mappings created by aes().

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. "jitter" to use position_jitter)

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

Examples

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)

abikoushi/ggsomestat documentation built on March 21, 2024, 7:03 a.m.