arbin_quickplot: arbin_quickplot

Description Usage Arguments Examples

Description

This function takes a data frame of either raw data or aggregated statistics, any argument for x or y-axis plotting, and returns a ggplot with the desired formatting and axis labels. Can also do things such as subsetting data with dplyr.

Usage

1
arbin_quickplot(data, x, y, geom = geom_point, size = 4)

Arguments

data

The dataset, which must be a dataframe.

x

The variable to be plotted on the x-axis

y

The variable to be plotted on the y-axis

geom

The geom to be passed to ggplot; e.g. geom_point or geom_path

size

The size of the geom.

Examples

1
2
3
arbin_quickplot(mydataset$raw, x = t, y = E)
arbin_quickplot(filter(mydataset$raw, cyc.n == 1, x = t, y = E, geom = geom_path, size = 1)
arbin_quickplot(mydataset$stat, x = cyc.n, y = d.Q)

mjlacey/arbintools documentation built on May 23, 2019, 1:04 a.m.