Create a nice plot Create a nice looking plot complete with axes using ggplot.

Description

Create a nice plot Create a nice looking plot complete with axes using ggplot.

Usage

1
2
## S3 method for class 'ddplot'
ggplot(data, axis.location = c(0.2, 0.2), ...)

Arguments

data

plot to display, object created by dd_load()

axis.location

grob function to use for drawing

...

arguments passed to the grob function

Author(s)

Hadley Wickham h.wickham@gmail.com

Examples

1
2
3
4
5
6
7
8
9
library(ggplot2)
print(ggplot(dd_example("xyplot")))
print(ggplot(dd_example("tour2d")))
print(ggplot(dd_example("tour1d")))
print(ggplot(dd_example("plot1d")))
print(
  ggplot(dd_example("plot1d")) + 
  geom_segment(aes(x = x, xend = x, y = 0, yend = y), size = 0.3)
)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.