ggplot_df: Plotting data.frame using ggplot

Description Usage Arguments Value Examples

Description

Plotting data.frame using ggplot

Usage

1
2
ggplot_df(df, titlestr = NULL, ylabstr = NULL, ylim = NULL,
  color = NULL, linetype = NULL, logy = F)

Arguments

df

A data.frame to plot

titlestr

(optional) Title of plot as string

ylabstr

(optional) Y-axis label as string

ylim

(optional) y-axis limits as [1,2] numeric, passed on to dfplot() as 'ylim'

color

(optional) Input for manual color scale

linetype

(optional) Input for manual linetype scale

logy

(optional) Should y-axis be logarithmic? A boolean value.

Value

Returns a ggplot2 object

Examples

1
2
3
4
5
## Not run: 
dc <- create_syn_data_toy()
ggplot_df(dc$data[[1]])

## End(Not run)

bwrc/cocoreg-r documentation built on May 13, 2019, 9:09 a.m.