powered by
Plotting, summarising, and printing cmf objects
# S3 method for cmf plot(x, select, line = TRUE, labelSelected = TRUE, defaultColour = "#00008b", highlightColour = "#e2bd36", ...)# S3 method for cmf screeplot(x, topn, ...)# S3 method for cmf summary(object, ...)# S3 method for cmf print(x, ...)
# S3 method for cmf screeplot(x, topn, ...)
# S3 method for cmf summary(object, ...)
# S3 method for cmf print(x, ...)
cmf object
optional selection vector of variables to show
whether to show a line at the chosen cutoff
whether to label the selected mediators in the plot, not used when fewer than 20 bars are shown.
the colour for the bars lower than the cutoff
the colour for the bars of the selected mediators
other arguments passed to barplot and summary
only show the top n mediators
cmf
# NOT RUN { # generate some data dat <- generateMed(a = (1:10)/20, b = (1:10)/20) res <- cmf(dat) # screeplot of the result screeplot(res) # manhattan style plot the result plot(res) # }
Run the code above in your browser using DataLab