condcompPlot {condcomp} | R Documentation |
This function takes the output from condcomp
and plots some of
its attributes in a scatter plot.
condcompPlot(ccomp, col = ccomp$iqr, main = NULL, legend.title = "IQR")
ccomp |
A data frame output from |
col |
Color parameter to be used. The default is to color according to
the IQR column of |
main |
Character vector (or expression) giving plot title. |
legend.title |
Character vector giving the legend title. |
The first condition ratio that appears in the data frame will be plotted in the y-axis (-log10 scale), whereas the Z-score will be plotted along the x-axis. Each group will be colored by their respective IQR value as shown in the legend.
A ggplot2 object.
clustering <- iris$Species dmatrix <- as.matrix(dist(iris[-length(iris)])) # Suppose the conditions are 'young' and 'old' fish cond <- sample(c("young", "old"), nrow(iris), replace=TRUE) comp <- condcomp(clustering, cond, dmatrix=dmatrix, n=10) condcompPlot(comp)