plot_dens2: Plot bivariate estimated density function

Description Usage Arguments Value Examples

View source: R/plot_dens2.R

Description

This function plots the estimated bivariate density function for a given set of data using a given orthonormal basis of some dimension.

Usage

1
plot_dens2(basis, data, dim, resol = 300)

Arguments

basis

an object of class Basis

data

a data frame with two columns, each containing a sample of i.i.d. real random variables with common density.

dim

a vector of length two. If only one value is passed, this value is reproduced to attain a vector of length two.

resol

a numeric value, specifying the quality of the plot(length.out of processed values). The default is 300.

Value

no return

Examples

1
2
3
4
5
6
7
## Not run: 
trig_bas <- Trig_Basis$new(1000)
dens <- function(x) dnorm(x, 0.5, 0.088)
data <- rdens(dens, 150)
p9 <- plot_dens2(trig_bas, data = data.frame(data, data), dim = c(8, 8))

## End(Not run)

nschaefer1211/OSE documentation built on Dec. 31, 2020, 12:59 a.m.