DescribeDisplay (version 0.2.5)

ggplot.ddplot: 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

"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

Examples

Run this code
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)
)

Run the code above in your browser using DataCamp Workspace