Title Plotting to show the quality controlled data in environmental space.
Source:R/ggenvironmentalspace.R
ggenvironmentalspace.RdTitle Plotting to show the quality controlled data in environmental space.
Usage
ggenvironmentalspace(
qcdata,
xvar = NULL,
yvar = NULL,
zvar = NULL,
labelvar = NULL,
type = "2D",
xlab = NULL,
ylab = NULL,
zlab = NULL,
ncol = 2,
nrow = 2,
scalecolor = "viridis",
colorvalues = "auto",
legend_position = "right",
legend_inside = NULL,
pointsize = 1,
themebackground = "bw",
fontsize = 13,
legtitle = "blank",
ggxangle = 1,
xhjust = 0.5,
xvjust = 1,
main = NULL,
pch = "auto",
lpos3d = "left",
cexsym = NULL
)Arguments
- qcdata
dataframeData output from quality controlled functionextract_clean_dataandclassify_data.- xvar
stringThe variable to be on the x-axis.- yvar
stringThe variable to be on the y-axis.- zvar
stringThe variable to be on the z-axis only if the 3D plot type is selected..- labelvar
stringColumn name in the quality controlled data that has the labels. This applies is the 3D plot is selected.- type
stringIts1D,2Dfor a two dimensional ggplot2 graph or3Dfor a 3-dimensional graph for multivariate data.- xlab, ylab, zlab
stringx-axis, y-axis, and z-axis label.- ncol, nrow
integerIf number of groups are greater than 1, then number of rows and columns can be set. Check ggplot2 facet parameters on how the columns are set.- scalecolor
stringThe scale color themes supported are grey, manual, viridis. Ifmanualis selected, then thecolorvaluesshould be provided for the different colors for each data label.- colorvalues
If
manualis selected, then thecolorvaluesshould be provided for the different colors for each data label. If 3D is selected andcolorvaluesis notauto, then colors should determined.- legend_position
stringIts eitherbottom,toporinside. If theinsideis selected then the vector with graph coordinates should be provided to avoid the legend overlap with the graph contents.- legend_inside
vectorIf theinsidefor legend position is selected then the vector with graph coordinates should be provided to avoid the legend overlap with the graph contents.- pointsize
decimalThe size of the points.- themebackground
stringEitherclassic,bworgrayto set the plot theme. This is based on ggplot2.- fontsize
integerIndicates the sizes of fonts for the whole graph.- legtitle
stringEitherblankorTRUEto set the legend title for the 2D plot.- ggxangle
integerIndicates the angle of the x-axis text. The dafualt is 45 but depend on the data.- xhjust
numericIndicates the distance of the x-axis text from the x-axis line in a vertical direction.- xvjust
numericIndicates the distance of the x-axis text from the x-axis line in a horizontal direction.- main
stringPlot title- pch
stringEitherauto: the point characters will be automatically set or different pch are set.- lpos3d
stringIndicates the legend position for the 3D graph. bottom, left, and right are accepted.- cexsym
numericThe size of pch in the 3D plot.