Learn R Programming

cocoreg (version 0.1.1)

ggplot_df: Plotting data.frame using ggplot

Description

Plotting data.frame using ggplot

Usage

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

Run this code
## Not run: ------------------------------------
# dc <- create_syn_data_toy()
# ggplot_df(dc$data[[1]])
## ---------------------------------------------

Run the code above in your browser using DataLab