agg_point: Add a scatter layer to an arphit plot.

Description Usage Arguments See Also Examples

View source: R/gg-constructors.R

Description

Add a scatter layer to an arphit plot.

Usage

1
2
agg_point(aes = NULL, data = NULL, colour = NULL, pointsize = 1,
  panel = "1", color)

Arguments

aes

The aesthetic that defines the layer. Will inherit (or parts thereof) if omitted.

data

The data to be used. Will inherit from parent if missing.

colour

A colour to be applied to all of the series, or (if your aesthetic has a group), a vector of colours that will be cycled through to consecutive group elements.

pointsize

Scale the size of the points? (default 1)

panel

(default = "1") Which panel of the graph to place this layer on. You can specify a vector of panels (e.g. 'panel = c("1","3")') to apply the layer to multiple panels at once.

color

(Deprecated; use colour instead) Alias for colour

See Also

vignette("plotting-options", package = "arphit") for a detailed description of all the plotting options

Examples

1
2
data  <- data.frame(x = rnorm(10), y = rnorm(10))
arphitgg(data) + agg_point(aes = agg_aes(x = x, y = y), panel = "1")

angusmoore/arphit documentation built on Feb. 15, 2021, 9:40 a.m.