pieChart: plot pie chart for CMS classification

Description Usage Arguments Value Author(s)

View source: R/CMString_plotting.R

Description

plot pie chart for CMS classification

Usage

1
2
pieChart(df, var = "CMS.glmnet", digits = 1, main = "",
  labTotalN = FALSE)

Arguments

df

data frame with column that will be used to plot the pie chart [default: none]

var

string specifying which column from the supplied data frame to plot [default: "CMS.glmnet"]

digits

integer specifying to how many digits pie labels should be rounded [default: 1]

main

string specifying the title of the plot [default: ""]

labTotalN

boolean specifying whether the total number of samples in each category should be added in addition to the percentage [default: FALSE]

Value

vector with percentages of samples in each category

Author(s)

Robert Piskol


rpiskol/CMString documentation built on May 24, 2019, 8:52 a.m.