plot.powdRbkg: Plotting a powdRbkg object

Description Usage Arguments Details Examples

View source: R/plotting.R

Description

plot.powdRbkg is designed to provide quick plots to inspect the fitted backgrounds obtained from bkg.

Usage

1
2
## S3 method for class 'powdRbkg'
plot(x, interactive, ...)

Arguments

x

a powdRbkg object

interactive

Logical. If TRUE then the output will be an interactive ggplotly object. If FALSE then the output will be a ggplot object.

...

other arguments

Details

The only mandatory argument is x, which must be a powdRbkg object. Plots can be made interactive using the logical interactive argument.

Examples

1
2
3
4
5
6
7
# Load the minerals library
data(minerals)

## Not run: 
plot(minerals, interactive = TRUE)

## End(Not run)

benmbutler/powdR documentation built on Nov. 29, 2021, 1:05 p.m.