ggplot.ddplot | R Documentation |
Create a nice plot Create a nice looking plot complete with axes using ggplot.
## S3 method for class 'ddplot'
ggplot(data, ..., axis.location = c(0.2, 0.2))
data |
plot to display, object created by |
... |
arguments passed to the grob function |
axis.location |
grob function to use for drawing |
Hadley Wickham h.wickham@gmail.com
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)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.