Description Usage Arguments Examples
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.
1 | arbin_quickplot(data, x, y, geom = geom_point, size = 4)
|
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. |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.