Learn R Programming

IdMappingAnalysis (version 1.16.0)

boxplot.JointUniquePairs: Draw a basic boxplot based on a given JointUniquePairs object and external data

Description

Draw a basic boxplot (without title and x/y labs) based on a given set of matches from the JointUniquePairs object and auxiliary data (response.data) from another data type. Reused for example within the corrboxplot() and mixture.boxplot() by providing specific response.data to this function and adding the title and x/y labels after the basic plot is complete

Usage

"boxplot"(x, response.data, args=NULL, showNone=NA, multiline=FALSE, plot=TRUE, truncate.labels=TRUE, group.gap=0.3, cex=1, cex.main=1.2, cex.lab=1, cex.axis=1, srt=0, adj=0, par.zoom=1, addPoints=TRUE, col.points="lightblue", allAgree="All Agree", ...)

Arguments

response.data
The numeric data vector on which the distribution for each particular match group is computed on the fly during the plot.
args
Optional list of ID Map names within the UniquePairsMatch object to be plotted allowing to plot a subset of match groups. Default is NULL.
showNone
If not NA, includes a plot of subset of values not included into any other match group using showNone label. The default is NA.
multiline
If TRUE the compaund expression x axis labels plotted in multiple lines, i.e. 'A & B' is plotted as 'A & B'. Default is FALSE
plot
if TRUE (default) then a boxplot is produced. If not, the summaries which the boxplots are based on are returned.
group.gap
Extra gap between boxplot groups. Default is 0.3.
cex
Plot symbols font size. Default is 1.
cex.main
Main title font size. Default is 1.2.
cex.lab
X and Y titles font size. Default is 1.
cex.axis
X and Y axis labels font size. Default is 1.
srt
Match group label orientation (see par('srt')). The default is 0.
adj
numeric in a range (-1..1) determening how close to the x-axis the group labels are, negative being the closest and positive the furthest. The default is 0.
par.zoom
Graphics parameters zoom factor. Scales the graphical parameters like cex, lwd, mai etc.
addPoints
If TRUE (default), the points representing the data density distribution of a particular compaund group are plotted along with a standard box.
col.points
The color of the data points plotted along with a particular box.
allAgree
The text plotted for a compaund group corresponding to intersection of all match groups.
...
Additional graphical parameters

Value

The data structure with following components:
boxdata
Same as for boxplot in graphics package.
response.grouped
Input data grouped by matches.

See Also

For more information see JointUniquePairs.

Examples

Run this code
 args=list(NetAffx_Q="Affy_Q",DAVID_F="D_F",EnVision_Q="EnQ");
 data<-examples$jointUniquePairs$boxplot(examples$corr$getData(),args,srt=30,allAgree="All");
 data$boxdata;
 names(data$response.grouped);
 

Run the code above in your browser using DataLab