theme_km: Custom ggplot theme that make Kaplan-Meier curves look nice

Description Usage Arguments Examples

Description

Custom theme, based upon the theme_bw theme in ggplot2

Usage

1
2
theme_km(base_size = 11, base_family = "",
  base_line_size = base_size/22, base_rect_size = base_size/22)

Arguments

base_size

base font size

base_family

base font family

base_line_size

base size for line elements

base_rect_size

base size for rect elements

Examples

1
2
3
4
5
library(survsup); library(ggplot2)
p <- ggplot(mtcars) + geom_point(aes(x = wt, y = mpg,
    colour = factor(gear))) + facet_wrap(~am)

p + theme_km()

survsup documentation built on May 7, 2019, 9:02 a.m.