K-Science.info

K-Science.info

Single Density Plots:

Data: The data that you wish to plot.
Title: The chart title.
xlab: The X axis label.
Polygon fills the chart with a color.
density(Data)->x
plot(x, main="Title", xlab="X Lab")
polygon(density(Data), col="grey", border="black")

Stacks Image 8988

Example 1: Grey Density Plot of Class Grades

density(ALL)->x
plot(x, main="Grade Density Plot", xlab="Grade (%)")
polygon(density(ALL), col="grey", border="black")

Stacks Image 92
Stacks Image 8998

Example 2: Colorized Density Plot of Class Grades

density(ALL)->x
plot(x, main="Grade Density Plot", xlab="Grade (%)")
polygon(density(ALL), col="light blue", border="red")

Stacks Image 9014