Learn R Programming

mxnorm (version 1.0.3)

plot_mx_proportions: Visualize variance proportions by marker and table

Description

Visualize variance proportions by marker and table

Usage

plot_mx_proportions(mx_data)

Value

ggplot2 object with proportions plot

Arguments

mx_data

mx_dataset object that been used with run_var_proportions() to run random effects modeling. Note that the table attribute must be set when running run_var_proportions().

Examples

Run this code
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")
mx_data = run_var_proportions(mx_data, table="both")
plot_mx_proportions(mx_data)

Run the code above in your browser using DataLab