cmf-methods | R Documentation |
Plotting, summarising, and printing cmf objects
## S3 method for class 'cmf'
plot(
x,
select,
line = TRUE,
labelSelected = TRUE,
defaultColour = "#00008b",
highlightColour = "#e2bd36",
...
)
## S3 method for class 'cmf'
screeplot(x, topn, ...)
## S3 method for class 'cmf'
summary(object, ...)
## S3 method for class 'cmf'
print(x, ...)
x |
cmf object |
select |
optional selection vector of variables to show |
line |
whether to show a line at the chosen cutoff |
labelSelected |
whether to label the selected mediators in the plot, not used when fewer than 20 bars are shown. |
defaultColour |
the colour for the bars lower than the cutoff |
highlightColour |
the colour for the bars of the selected mediators |
... |
other arguments passed to barplot and summary |
topn |
only show the top n mediators |
object |
cmf object |
cmf
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.