Open brigidar opened 1 year ago
Hi! Did you ever find a solution for this? I'm having similar issues and am struggling to find additional documentation
The guide system changed in ggplot2 3.5.0 and I don't know when I'll have the time or motivation to patch this up to a working state.
It's definitely a cool concept in general, hope to see it working in the future!
I am trying to do a umap graph with 3 genes and I can get the color to work, but then when it has to create the legend it fails with the error: Error in if (0 <= angle & angle < 90) { : the condition has length >
trace back info:
If i suppress the legend with theme(legend.position='none') I can get the graph to work. Similarly if I only use two genes I can see the graph and the legend. I made a dataframe with the umap coordinates and the SCT normalized expression for 3 genes. Tried to look at your code to figure out what was wrong with my input. I am running this on a docker image with RStudio with ggplot2 3.4.3.
Here is my code tes<-subset(immune_combined2, features= c('Zbtb16','Gata3','Rorc')) FD<-cbind(immune_combined2@reductions$umap@cell.embeddings,t(tes@assays$SCT$data)) FD<-data.frame(FD) g1<-ggplot(FD, aes(x = umap_1, y = umap_2))+geom_point(aes(colour = rgb_spec(Zbtb16, Gata3, Rorc)))+theme_classic()