View source: R/insert_legend.R
removeLegend | R Documentation |
Removes the clone size legend on an APackOfTheClones plot, if one is present. Will preserve any additional ggplot layers.
removeLegend(apotc_ggplot)
apotc_ggplot |
a ggplot object that is the output of |
A ggplot object of the APackOfTheClones clonal expansion plot of the
seurat object. There is an additional 10th element in the object named
"APackOfTheClones"
used by other functions in this package and shouldn't
interfere with any other ggplot functionality. (As far as currently known)
overlayLegend
# create an APackOfTheClones plot with a legend
apotc_plot <- vizAPOTC(
get(data("combined_pbmc")),
add_size_legend = TRUE,
verbose = FALSE
)
# remove the legend
apotc_plot <- removeLegend(apotc_plot)
apotc_plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.