james: Object to Save Data and Meta Data on Your Figure

View source: R/james-class.R

jamesR Documentation

Object to Save Data and Meta Data on Your Figure

Description

The main data object in the 'nicerplot' package has class ‘james'. 'james' objects enable you to add data and meta data in an incremental fashion so you don’t need to put everything in one and the same plot-statement.

Usage

james(...)

Arguments

...

add parameters to customize figure (see manual)

Details

Knowing the right parameter names is crucial. One example is parameter 'data', which you can use to store your data object. Please see manual for details. Please find the manual here: https://data-science-made-easy.github.io/nicerplot.

Value

object of class james

Examples

## Not run: 
x <- 0:6
d <- data.frame(x, first = (6 - x)^2, second = x^2)
j <- nicerplot::james(data = d, title = 'Hello World', x_title = 'x', y_title = 'y') # init
j$footnote <- 'just an example' # add other parameters
nicerplot::nplot(j)

## End(Not run)

data-science-made-easy/nicerplot documentation built on Nov. 3, 2024, 9:23 p.m.