create.stepplot: Create a step plot.

Description Usage Arguments Value Author(s) Examples

View source: R/create.stepplot.R

Description

Create a step plot from a dataframe.

Usage

1
create.stepplot(data = NULL, x = NULL, y = NULL, group = NULL, xlab = NULL, ylab = NULL, theme = NULL, filename = NULL, resolution = NULL, width = 8, height = 11)

Arguments

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

Value

Returns a ggplot object containing the step plot.

Author(s)

Richard de Borja <richard.deborja@sickkids.ca>

Examples

1
create.stepplot(data=mtcars, x='qsec', y='wt')

rdeborja/plotting.general documentation built on May 27, 2019, 3:05 a.m.