Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
R
 
 
man
 
 
 
 
 
 
 
 
 
 
 
 

README.md

utile.visuals

CRAN_Status_Badge Total Downloads

Overview

A small set of functions for making visuals for publication in ggplot2. Includes minimalist themes with transparent backgrounds and a suite of tools for building Kaplan-Meier curves with risk tables.

Functions

> gg

  • ggrisktable(): A simple wrapper function which calculates the numbers at risk for a survival model and a given set of time points then creates a ggplot2 table with them.

> geom_

  • geom_stepconfint(): Produces a step function confidence interval for survival curves. Essentially the ggplot2::geom_step() for confidence intervals which ggplot2 elects not to provide.

> theme_

  • theme_white(): A ggplot2 theme which removes most background elements and makes all text/lines white.
  • theme_black(): A ggplot2 theme which removes most background elements and makes all text/lines black.
  • theme_risk_white(): Minimalist ggplot2 theme which removes most background elements and makes all text/lines white.
  • theme_risk_black(): Minimalist ggplot2 theme which removes most background elements and makes all text/lines black.

> append_

  • append_table(): Aligns axes and combines a ggplot2 plot and table into a single plot. Can handle legends.

> connect_

  • connect_origin(): Connects tidy'd survival::survfit data to the origin of a plot.

About

Create visuals for publication

Topics

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.