From 1e59f9c2dde1d32025f53e92a91370dd161c5945 Mon Sep 17 00:00:00 2001 From: Stephanie Spielman Date: Tue, 14 Jan 2025 15:16:06 -0500 Subject: [PATCH] ensure legend fits, and render the html --- .../02_compare-clustering-parameters.Rmd | 4 +- .../02_compare-clustering-parameters.nb.html | 118 ++++++++---------- 2 files changed, 52 insertions(+), 70 deletions(-) diff --git a/analyses/hello-clusters/02_compare-clustering-parameters.Rmd b/analyses/hello-clusters/02_compare-clustering-parameters.Rmd index e5ffb6c5c..6ba7df341 100644 --- a/analyses/hello-clusters/02_compare-clustering-parameters.Rmd +++ b/analyses/hello-clusters/02_compare-clustering-parameters.Rmd @@ -361,7 +361,9 @@ umap_plots <- cluster_results_list |> theme( axis.ticks = element_blank(), axis.text = element_blank(), - legend.position = "bottom" + # Ensure legends fit in the figure + legend.position = "bottom", + legend.key.size = unit(0.2, "cm") ) } ) diff --git a/analyses/hello-clusters/02_compare-clustering-parameters.nb.html b/analyses/hello-clusters/02_compare-clustering-parameters.nb.html index 212e116c5..76257489e 100644 --- a/analyses/hello-clusters/02_compare-clustering-parameters.nb.html +++ b/analyses/hello-clusters/02_compare-clustering-parameters.nb.html @@ -11,7 +11,7 @@ - + Comparing clustering parameters with rOpenScPCA @@ -2901,7 +2901,7 @@

Comparing clustering parameters with rOpenScPCA

Data Lab

-

2025-01-13

+

2025-01-14

@@ -3040,7 +3040,7 @@

Varying a single clustering parameter

listed below. Clusters will be calculated for all combinations of parameters values (where applicable); default values that the function will use for any unspecified parameter values are shown in -parentheses

+parentheses.

-

rOpenScPCA::sweep_clusters() does allow you to specify -values for any other parameters.

+

rOpenScPCA::sweep_clusters() does not allow you to +specify values for any other parameters.

This function will return a list of data frames of clustering results. Each data frame will have the following columns: