Skip to contents

Quick plot

Usage

s_plot(data, x, y, ..., geom = "auto", main, xlab, ylab, asp)

Arguments

data

A data frame or tibble.

x

A column name.

y

A column name (optional).

...

Other arguments to be passed to the qplot() function.

geom

Character vector specifying geom(s) to draw. Defaults to "point" if x and y are specified, and "histogram" if only x is specified.

main, xlab, ylab

Character vector (or expression) giving plot title, x axis label, and y axis label respectively.

asp

The y/x aspect ratio