kde2d_tidy: Convert the output of MASS::kde2d output into long format.

Description Usage Arguments Examples

View source: R/kde2d_output.R

Description

Long format is helpful in ggplot2 plots.

Usage

1
kde2d_tidy(kde2d_output)

Arguments

kde2d_output

Ouput of MASS:kde2d output.

Examples

1
2
3
4
5
6
7
library("MASS")
temp <- MASS::kde2d(x = runif(100, 0, 1)
                    , y = runif(100, 0, 5)
                    , n = 500
                    )
str(temp)
kde2d_tidy(temp)

talegari/sidekicks documentation built on Sept. 26, 2018, 4:18 p.m.