View source: R/nmr_baseline_threshold.R
nmr_baseline_threshold_plot | R Documentation |
If you have a lot of samples you can make the plot window bigger (or
use " ```{r fig.height=10, fig.width=10}
" in notebooks), or choose some NMRExperiments.
nmr_baseline_threshold_plot(
nmr_dataset,
thresholds,
NMRExperiment = "all",
chemshift_range = c(9.5, 10),
...
)
nmr_dataset |
An nmr_dataset_1D object |
thresholds |
A named vector. The values are baseline thresholds. The names are NMRExperiments. |
NMRExperiment |
The NMRExperiments to plot (Use |
chemshift_range |
The range to plot, as a first check use the |
... |
arguments passed to ggplot2::aes (or to ggplot2::aes_string, being deprecated). |
A plot.
ppm_axis <- seq(from = 0, to = 10, length.out = 1000)
data_1r <- matrix(runif(1000, 0, 10), nrow = 1) + 100
dataset_1D <- new_nmr_dataset_1D(
ppm_axis = ppm_axis,
data_1r = data_1r,
metadata = list(external=data.frame(NMRExperiment = "10"))
)
bl_threshold <- nmr_baseline_threshold(dataset_1D, range_without_peaks = c(9.5,10))
baselineThresh <- nmr_baseline_threshold(dataset_1D)
nmr_baseline_threshold_plot(dataset_1D, bl_threshold)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.