We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cef7831 commit 01849e4Copy full SHA for 01849e4
workflow/scripts/plot_2d.R
@@ -53,6 +53,12 @@ height_panel <- ceiling(ncol(metadata)/n_col) * height
53
scatter_plots <- list()
54
55
for (col in colnames(metadata)){
56
+
57
+ # check if metadata column is only NA
58
+ if(all(is.na(metadata[col]))){
59
+ next
60
+ }
61
62
tmp_data <- cbind(data, metadata[col])
63
tmp_plot <- ggplot(tmp_data, aes_string(x=colnames(tmp_data)[1], y=colnames(tmp_data)[2])) +
64
geom_point(aes_string(color=col), size=size, stroke=0, alpha=alpha) +
0 commit comments