cmf-methods: Methods for cmf results lists

cmf-methodsR Documentation

Methods for cmf results lists

Description

Plotting, summarising, and printing cmf objects

Usage

## 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, ...)

Arguments

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

See Also

cmf

Examples

# 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)



vankesteren/cmfilter documentation built on April 6, 2023, 3:40 a.m.