esquisser: An add-in to easily create plots with ggplot2

Description Usage Arguments Value Examples

View source: R/esquisser.R

Description

An add-in to easily create plots with ggplot2

Usage

1
2
3
esquisser(data = NULL, coerceVars = getOption(x =
  "esquisse.coerceVars", default = FALSE), viewer = getOption(x =
  "esquisse.viewer", default = "dialog"))

Arguments

data

a data.frame, you can pass a data.frame explicitly to the function, otherwise you'll have to choose one in global environment.

coerceVars

If TRUE allow to coerce variables to different type when selecting data.

viewer

Where to display the gadget: "dialog", "pane" or "browser" (see viewer).

Value

code to reproduce chart.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
# Launch with:
esquisser(iris)
# If in RStudio it will be launched by default in dialog window
# If not, it will be launched in browser

# change diplay mode with:
options("esquisse.display.mode" = "viewer")
# or
options("esquisse.display.mode" = "browser")

## End(Not run)

dreamRs/esquisse documentation built on Aug. 9, 2018, 9:31 a.m.