plotup: Presents a specific graphic explicitly called by name.
Description
In order to present the graphic, the user must define a dataset, at
least one variable whitin this dataset and a compatible type of graphic.
Future work will include graphics that involve more number and
combinations of types of variables.
Usage
plotup(data, vars, diagram, output = "html", dir = tempdir())
Arguments
data
Data.frame. Default dataset to use for plot. If not already a
data.frame, it should be first coerced to by [as.data.frame()].
vars
Character. A variable within the dataset.
diagram
Character. A specific graphic to be presented within the ones
considered by the 'logical', 'ordered', 'factor', 'character', 'datetime' and 'numeric'
arguments of the 'wideplot()' function.
output
Character. Type of output.
'html': default output is a html webpage.
'plots pane': output in RStudio's plots pane.
'console': shows the code that produces a particular graphic.
dir
Directory in which the files are stored.
Value
This function can have three outputs: by default it produces a particular graphic,
but it can also be represented into the RStudio's plots pane, or can return the code to produce it.