inst/doc/lans2r-hmr.R

## ---- message=FALSE, warning=FALSE--------------------------------------------
library(lans2r)
library(dplyr)
library(knitr)
library(ggplot2)

## -----------------------------------------------------------------------------
hmr <- load_HMR(system.file("extdata", "nanosims_data", "hmr", package = "lans2r"), 
                prefix = "", suffix = ".hmr_txt")

## -----------------------------------------------------------------------------
hmr %>% select(-step, -voltage, -cts) %>% distinct() %>% kable()

## ---- fig.width = 7, fig.height = 5-------------------------------------------
hmr %>% 
  ggplot() +
  aes(voltage, cts, color = ion) + 
  geom_line() +
  scale_y_log10("counts") +
  facet_wrap(~ion, scales = "free")

Try the lans2r package in your browser

Any scripts or data that you put into this service are public.

lans2r documentation built on March 7, 2023, 7:38 p.m.