print.RGT_plot: Routine to call plotting functionality

Description Usage Arguments Examples

View source: R/plots.R

Description

Function call is redirected to ggplot2 in order to plot the argument.

Usage

1
2
## S3 method for class 'RGT_plot'
print(x, ...)

Arguments

x

Object of type RGT_plot.

...

Further arguemnts passed on to ggplot2.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
library(ggplot2)

df <- data.frame(x = 1:20,
                 y = 1:20,
                 z = as.factor(rep(1:4, each = 5)))

ggplot(df) +
  geom_line(aes(x = x, y = y, color = z))

jplot(df) +
  geom_line(aes(x = x, y = y, color = z))

ggplot(df) +
  geom_point(aes(x = x, y = y, color = z))

jplot(df) +
  geom_point(aes(x = x, y = y, color = z))

sfeuerriegel/ResearchGroupTools documentation built on May 29, 2019, 8:01 p.m.