plotrr (version 1.0.0)

histplots: Creates histograms for a measure for each group/unit

Description

Returns histograms for a measure for each group/unit.

Usage

histplots(x, y, group, data, n)

Arguments

x

A vector.

y

A vector.

group

A vector that contains unit/group identifiers.

data

A data frame.

n

The number of bins.

Value

Historgrams for a measure for each group/unit.

Examples

Run this code
# NOT RUN {
a <- runif(1000, min = 0, max = 1)
b <- a + rnorm(1000, mean = 0, sd = 1)
c <- rep(c(1:10), times = 100)
data <- data.frame(a, b, c)
histplots("a", "b", "c", data, 5)
# }

Run the code above in your browser using DataLab