gogoplot: Interactively build a plot.

Description Usage Arguments Value Examples

View source: R/gogoplot.R

Description

Launch an interactive shiny gadget that lets you build a ggplot2 plot from the given data. This function is also callable using an RStudio Addin – you can high-light a data-frame object and select the "gogoplot" addin.

Usage

1
gogoplot(.data, popup = FALSE, width = 900, height = 800)

Arguments

.data

a data-frame to visualize

popup

logical value to display the UI as a pop-up window. The default is FALSE, which will show the UI in the Viewer pane.

width

width of the pop-up window, in pixels.

height

height of the pop-up window, in pixels.

Value

When using RStudio, the generated plot code is inserted at your cursor using the rstudioapi insertText function. Outside of RStudio, the code is printed as a message. Plot code is also invisibly returned as a string, if you want to capture the return object.

Examples

1
2
3
4
5
6
## Not run: 
library(ggplot2)
library(gogoplot)
gogoplot(mtcars)

## End(Not run)

wcmbishop/gogoplot documentation built on May 29, 2019, 10:39 a.m.