Learn R Programming

shipunov (version 1.17.1)

Linechart: Dotchart-like plot sfor every scaled variable grouped by factor

Description

Dotchart-like plot for every scaled variable grouped by factor

Usage

Linechart(vars, groups, xticks=TRUE, xmarks=TRUE, mad=FALSE, pch=19,
 se.lwd=1, se.col=1, ...)

Arguments

vars

Variables to draw (data frame)

groups

Grouing factor

xticks

Show xticks?

xmarks

Show xmarks?

mad

Show MAD instead of IQR?

pch

Points type

se.lwd

Lines width

se.col

Lines color

...

arguments to 'plot()'

Author

Alexey Shipunov

Details

Linechart() is dotchart-based plot which shows medians and IQRs (or MADs) for every scaled variable grouped by 'groups' factor.

Alternatives: trellis designs.

See Also

Boxplots

Examples

Run this code

Trees <- trees
Trees[, 4] <- sample(letters[1:3], nrow(Trees), replace=TRUE)
Linechart(Trees[, 1:3], factor(Trees[, 4]))

Linechart(iris[, 1:4], iris[, 5])

Run the code above in your browser using DataLab