knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(tidyverse) library(irma)
Make a dataset:
n <- 80 p <- 0.2 se <- 0.8 sp <- 0.7 dat <- make_data(n, p, se, sp) dat
Check implied parameters (consequence of rounding):
dat %>% get_param_from_data()
Plot it
dat %>% mutate( test=factor(test, labels=c("T-","T+")), disease=factor(disease, labels=c("D-","D+")) ) %>% autoplot.irma_data(fill_by=disease)
Or the other way:
dat %>% mutate( test=factor(test, labels=c("T-","T+")), disease=factor(disease, labels=c("D-","D+")) ) %>% autoplot.irma_data(fill_by=test)
TODO: - [ ] Zeallotify - [ ] importFrom crazyness - [ ] Solve the S3 thing: making data an object of class irma breaks everything
TODO shiny: - [ ] Allow log10 variations for total
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.