ggplot_df: Plotting data.frame using ggplot

Description Usage Arguments Value Examples

View source: R/common_plots.R

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)

cocoreg documentation built on May 31, 2017, 5:18 a.m.