View source: R/plot_mx_density.R
plot_mx_density | R Documentation |
Visualize marker density before/after normalization by marker and slide
plot_mx_density(mx_data)
mx_data |
|
ggplot2
object with density plot
mx_data = mx_dataset(mxnorm::mx_sample, "slide_id", "image_id",
c("marker1_vals","marker2_vals","marker3_vals"),
c("metadata1_vals"))
mx_data = mx_normalize(mx_data, transform="log10",method="None")
## using `threshold_override` here in case users haven't installed `scikit-image`
mx_data = run_otsu_discordance(mx_data, table="normalized",
threshold_override = function(thold_data){quantile(thold_data, 0.5)})
plot_mx_density(mx_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.