Initialize a plotit object
Usage
plotit(
data,
mapping = encode(),
autofit = FALSE,
width = 89,
height = 56,
size_unit = "mm",
dodge = NULL,
default_color = "#0072B2"
)Arguments
- data
A data frame, a matrix (coerced with
as.data.frame()), or aplotit_graph(relational pipeline; seeas_graph()).- mapping
An object created by
encode().- autofit
Logical; if
TRUE, panel size is not baked (follows the device). IfFALSE(default) the panel is baked WYSIWYG atwidth/height.- width, height
Numeric; panel size in
size_unit. Default is a Nature single-column canvas (89 x 56 mm). Ignored whenautofit = TRUE.- size_unit
Unit for width/height:
"in","cm","mm".- dodge
Numeric; global default dodge width. If
NULL, heuristically set to0.8when a discrete axis is present, else0.- default_color
Single color string. Applied as default color mapping if no color/fill aesthetic is present in
mapping. Adding anyscale_color()orscale_fill()later will automatically disable this single-color mapping. Default is the first friendly palette anchor (#0072B2).

