R/functionsPlotting_circular.R
superbPlot.circularpointjitter.Rd
superb comes with a few circular layouts for making plots. It produces ggplot objects that can be further customized.
It has these parameters:
a data.frame with columns "center", "lowerwidth" and "upperwidth" for each level of the factors;
a string with the name of the column where the factor going on the horizontal axis is given;
a string with the name of the column for which the data will be grouped on the plot;
a string with up to two additional factors to make the rows and columns panels, in the form "fact1 ~ fact2";
always contains "DV" for each participants and each level of the factors
(optional) list of graphic directives that are sent to the geom_bar layer
(optional) list of graphic directives that are sent to the geom_bar layer
(optional) list of graphic directives that are sent to the geom_superberrorbar layer
(optional) list of graphic directives that are sent to the facet_grid layer
(optional) list of arguments to the radar coordinates (seel coord_radial()
).
(optional) Boolean to indicate if the factor on the horizontal should continuous or discrete (default is discrete)
a ggplot object
# This will make a plot with points
superbPlot(ToothGrowth,
BSFactors = c("dose","supp"), variables = "len",
plotStyle = "circularpointjitter"
)
# if you extract the data with superbData, you can
# run this layout directly
#processedData <- superbData(ToothGrowth,
# BSFactors = c("dose","supp"), variables = "len"
#)
#
#superbPlot.circularpointjitter(processedData$summaryStatistic,
# "dose",
# "supp",
# ".~.",
# processedData$rawData)