Complication with clustree image generation

39 views Asked by At

Running the below code (initially without par (lwd = 1) line ) returned the following error, and the same error was returned again after setting par(lwd = 1) or to 0.5 or 10. Truthfully don't totally understand what's going on when i change that variable other than that id be changing the width of the lines of the plot?

Any insight would be greatly appreciated. I'm new to R and trying to perform some of my own scRNA analyses but would like to use clustree to visualize and determine # of clusters in my dataset. Until this work I will just mess around with my resolution in Seurat and find something that seems reasonable - but would prefer this approach and want to understand what I'm doing wrong for the future. Thanks for any help!!

#Use clustree to determine best resolution for this dataset 
library(clustree)
CD4_PI_clust <- FindClusters(CD4_g_PI, resolution = c(0, .1, .2, .3, .4, .5, .6, .7, .8, .9, 1))

par(lwd = 1)
det_clus_num <- clustree(x = [email protected], prefix = "RNA_snn_res.")
det_clus_num

explained above !

0

There are 0 answers