BrailleR (version 0.30.2)

VI.ggplot: VI for graphs created using ggplot2

Description

Prints a textual description of a graph produced by ggplot or qplot.

Usage

# S3 method for ggplot
VI(x, Describe=FALSE, threshold=10, 
   template=system.file("whisker/VIdefault.txt", package="BrailleR"),
   ...)

Arguments

x

an object created by ggplot() or qplot() from the ggplot2 package which therefore has class gg or ggplot.

Describe

Should the Describe function be called at the same time. Not currently implemented for ggplot objects.

threshold

Maximum number of data items that should be individually listed in the output.

template

Template file, in mustache format, to be used in creating the text

...

other arguments, currently ignored

Value

Returns a structure containing a hierarchical representation of the graph as well as the text description as a character vector. When run interactively, the text description is printed.

Examples

Run this code
# NOT RUN {
if(require(ggplot2)){
g = ggplot(economics_long, aes(date, value01, colour = variable))
g = g + geom_line() + ggtitle('dummy title')
VI(g)
g
}
# }

Run the code above in your browser using DataLab