Description Usage Arguments Details Value Examples
Imports: cgdsr, survival, survminer
1 | setCGsurvival(clinic0, gene = NA, percsplit = 2, percs = NA, splitByCol = NA)
|
gene |
character, gene of interest which had to be one of the genes specified in the setCGclinic() function. If you want to split only by genotype, use the splitByCol. |
percsplit |
integer, how many percentiles are calculated? automactically controls what percentiles are calculated (2: 0th,50th; 3: 0th,33th,66th; 4: 0th,25th,50th,75th) |
percs |
numbers, which percentiles should be displayed in the survival plot (e.g. 0, 50, 33, 90, etc.) |
splitByCol |
character, a column name by which the groups should be split (in addition to the gene), e.g. whether or not another gene is mutated |
clinic |
output from the setCGclinic() function |
uses the OS_MONTHS column of the clinic-data.frame to calculate survival
list with 3 items: [[1]] a survival ggplot, [[2]] the extended clinic data.frame, [[3]] a summary, [[4]] the p value
1 2 3 4 | cgds <- setCGbase()
study <- setCGstudy(cgds, 5)
clinic <- setCGclinic(cgds, study, 2, 1, c("ACTA1","HOXA9"))
survival <- setCGsurvival(clinic, "HOXA9")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.