plot2density: Plot density

Description Usage Arguments Value Examples

View source: R/plot2density.R

Description

Plot density

Usage

1

Arguments

df

Two factor data frame each 200 from rnorm(m_1,1).

Value

Density plot over histogram

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 set.seed(1)
library(ggplot2)
m_1<-1
m_2<-3
df <- data.frame(
sex=factor(rep(c("F", "M"), each=200)),
 weight=round(c(rnorm(200, mean=m_1, sd=1),
                rnorm(200, mean=m_2, sd=1)))
)
plot2density(df)

LukaPavlovicR/EM documentation built on Jan. 31, 2022, 12:02 a.m.