plot.bmop: Plot of bmop object

Description Usage Arguments Details Value See Also Examples

View source: R/1-base-functions.R

Description

Plot of bmop object

Usage

1
2
3
## S3 method for class 'bmop'
plot(x, N = 1000, type = "l", contour = TRUE,
  persp = FALSE, file = NULL, MIN = 0, ...)

Arguments

x

bmop object

N

positive integer

type

graphical parameter, see par

contour

graphical parameter, see par

persp

logical

file

optional file name, where to save a pdf copy of the plot

MIN

parameter of evaluate.bmop

...

graphical parameters as col,main,..., see plot or filled.contour

Details

For the 2-d persp (persp==TRUE) plot the rgl package is needed. In order to obtain a nicer result in the contour plot, try to supply a col or color.palette parameter, like in the example below (RColorBrewer package is needed).

Value

plot of 1-d or 2-d (contour and perspective) bmop, an empty plot and a warning message are returned if the bmop object has more than 2 dimensions.

See Also

points.bmop

Examples

1
2
3
4
5
6
7
## Not run: 
bmop<-bmop_fit(data.frame(rnorm(100),rnorm(100)))
colFun<-
grDevices::colorRampPalette(RColorBrewer::brewer.pal(9,name="YlGnBu"))
plot(bmop,color.palette=colFun)

## End(Not run)

gherardovarando/Rbmop documentation built on May 17, 2019, 4:17 a.m.