Description Usage Arguments Value Examples
Wrapper to ggplot with automated change to gray-scale coloring.
| 1 | jplot(data = NULL, mapping = aes(), ..., environment = parent.frame())
 | 
| data | Default dataset used for plotting. | 
| mapping | Default list of aesthetics. | 
| ... | Further arguments passed to  | 
| environment | Alternative search space if a varaible is not found in
 | 
Returns a masked ggplot object that is encoded as class
"RGT_plot".
| 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))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.