Skip to content

Commit

Permalink
Update plotting.R
Browse files Browse the repository at this point in the history
Made change as described in powellgenomicslab#22 (comment)
  • Loading branch information
beigelk authored Feb 27, 2024
1 parent a9d81a2 commit d6f0b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/plotting.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ plot_density_ <- function(z, feature, cell_embeddings, dim_names, shape, size,
xlab(gsub("_", " ", dim_names[1])) +
ylab(gsub("_", " ", dim_names[2])) +
ggtitle(feature) +
labs(color = guide_legend(legend_title)) +
labs(color = legend_title) +
theme(
text = element_text(size = 14),
panel.background = element_blank(),
Expand Down

1 comment on commit d6f0b19

@beigelk
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More details: I changed (labs(color = guide_legend(legend_title)) + to labs(color = legend_title) +) on line 32, and plot_density is now working as expected for me.

Please sign in to comment.