# Plot Mean and Sorting
library(rysgran)
data(camargo2001)
tab<-camargo2001
rysgran.plot ("mean" , "sort" , data=tab, method="folk")
#
# Using show.labels
library(rysgran)
data(camargo2001)
tab<-camargo2001
rysgran.plot("mean" , "sort" , data=tab , method="folk",
lang="en-US", show.labels = TRUE,
col.labels = "blue", labels = NULL, cex.labels = 0.8)
#
# Skewness and Kurtosis with label.points
library(rysgran)
data(camargo2001)
tab<-camargo2001
rysgran.plot ("skew" , "kurt" , data=tab , method="folk",
lang="en-US", show.labels = FALSE, labels = NULL,
label.points = TRUE, pch = 19, col.labels = "black",
col = "blue", cex.labels = 0.8,
cex.points = 1, pos=1)
#
# Sorting and Kurtosis with Mean as bubbles
library(rysgran)
data(camargo2001)
tab<-camargo2001
rys <- gran.stats(tab , method="folk" , verbal=FALSE , lang="en-US")
rysgran.plot ("sort" , "kurt" , data=tab, method="folk",
lang="en-US", show.labels = FALSE, labels = NULL,
label.points = TRUE, pch = 21, col.labels = "white",
col = "red", cex.labels = 0.8, pos=NULL, z=rys$Mean,
z.cex.range=c(2.5,6), bg="red")
#
# With legend
library(rysgran)
data(camargo2001)
tab<-camargo2001
months <- as.factor(rep(c("Jan","Mar","May","Jul","Sep"),each=7))
months <- factor(months, levels = c("Jan","Mar","May","Jul","Sep"))
rysgran.plot ("sort" , "kurt", data = tab, method="folk",
lang="en-US",show.labels = FALSE, label.points = TRUE,
pch = c(15,17,18,19,20)[months],
col.labels = "black", labels = months, cex.labels = 0.8,
col = c("black","brown","blue","red","green")[months],
cex.points = 2, pos=1, z.cex.range=NULL, z=NULL)
legend("topright", c("January","March","May","July","September") ,
pch= c(15,17,18,19,20), col= c("black","brown","blue","red","green"))Run the code above in your browser using DataLab