Learn R Programming

kineticF (version 1.0)

do.rose.diag: Rose diagrams of sector frequencies

Description

Generates rose diagrams from sector frequencies and thus can only be called after calling kf.sort.

Usage

do.rose.diag(Sector, freqs, shrink = 1/2, col = "salmon", prop = 1, rotation = NULL)

Arguments

Sector
numeric, vector of sector values
freqs
numeric, vector of frequencies of values within each sector
shrink
parameter that controls the size of the plotted circle. Default is 1. Larger values shrink the circle, while smaller values enlarge the circle
col
character, fill colour
prop
numerical constant determining the radii of the sectors. By default, prop = 1
rotation
numeric, angle of rotation

Value

figure
Rose diagram graphical output
circ.freqs
numeric, vector of aggregated frequencies in 24 sectors

References

rose.diag{circular}

Examples

Run this code

## kf.sort must be run before do.rose.diag

test<- kf.sort()
					
try3<- do.rose.diag(test$mat.output$Sector, test$mat.output$fIII4e, 
                    shrink=0.9, prop=2.5, col='salmon', rotation=0)
 
mtext(text='III4e points plotted', side=3, line=-18, cex=1.2)

Run the code above in your browser using DataLab