ggInterval_radar {ggESDA} | R Documentation |
A interval Radar plot
Description
Using ggplot2 package to make a radar plot with multiple variables.Each variables contains min values and max values as a symbolic data.
Usage
ggInterval_radar(data=NULL,layerNumber=3,
inOneFig=TRUE,showLegend=TRUE,showXYLabs=FALSE,
plotPartial=NULL,
alpha=0.5,
base_circle=TRUE,
base_lty=2,
addText=TRUE,
type="default",
quantileNum=4,
Drift=0.5,
addText_modal=TRUE,
addText_modal.p=FALSE)
Arguments
data |
A ggESDA object. It can also be either RSDA object or classical data frame(not recommended),which will be automatically convert to ggESDA data. |
layerNumber |
number of layer of a concentric circle,usually to visuallize the reach of a observation in particularly variable. |
inOneFig |
whether plot all observations in one figure.if not, it will generate a new windows containing distinct observations. |
showLegend |
whether show the legend. |
showXYLabs |
whether show the x,y axis labels. |
plotPartial |
a numeric vector,which is the row index from the data.if it is not null, it will extract the row user deciding to draw a radar plot from original data.Notes : the data must be an interval data if the plotPartial is not null. |
alpha |
aesthetic alpha of fill color |
base_circle |
boolean, if true, it will generate inner circle. |
base_lty |
line type in base figure |
addText |
add the value of interval-valued variables in figure |
type |
different type of radar,it can be "default","rect","quantile" |
quantileNum |
if type == "quantile", it will provide the number of percentage |
Drift |
The drift term, which determines the radar values beginning. |
addText_modal |
add the factor of modal multi-valued variables in figure.. |
addText_modal.p |
add the value of modal multi-valued variables in figure.. |
Examples
# must specify plotPartial to some certain rows you want to plot
Environment.n <- Environment[, 5:17]
ggInterval_radar(Environment.n,
plotPartial = 2,
showLegend = FALSE,
base_circle = TRUE,
base_lty = 2,
addText = FALSE
) +
labs(title = "") +
scale_fill_manual(values = c("gray50")) +
scale_color_manual(values = c("red"))
ggInterval_radar(Environment,
plotPartial = 2,
showLegend = FALSE,
base_circle = FALSE,
base_lty = 1,
addText = TRUE
) +
labs(title = "") +
scale_fill_manual(values = c("gray50")) +
scale_color_manual(values = c("gray50"))