Description Usage Arguments Value Author(s) Examples
View source: R/create.stepplot.R
Create a step plot from a dataframe.
1 |
data |
a data frame |
x |
[Str] column from the data frame identifying the independent variable |
y |
[Str] column from the data frame identifying the dependent variable |
group |
[Str] field identifying the grouping for the data |
xlab |
[Str] label for the x-axis |
ylab |
[Str] lable for the y-axis |
theme |
[Function] theme function for the plot aesthetics |
filename |
[Str] name of output file to write plot to |
resolution |
[Int] resolution of the plot, default: 1200 |
width |
[Num] plot width |
height |
[Num] plot height |
Returns a ggplot object containing the step plot.
Richard de Borja <richard.deborja@sickkids.ca>
1 | create.stepplot(data=mtcars, x='qsec', y='wt')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.