Entering edit mode
7.3 years ago
1769mkc
★
1.2k
data1 <- AVERAGE_HSC_LSC
data1$HSC <- as.factor(data1$HSC)
library("ggpubr")
ggscatter(data1, x = "HSC", y = "LSC",
color = "HSC", shape = "HSC",
add = "reg.line", conf.int = FALSE,
palette = c("#00AFBB"),
cor.coef = TRUE, cor.method = "pearson",
color = "black", size=1)
I m getting this error, when i try to plot two color...
Error in ggscatter(data1, x = "HSC", y = "LSC", color = "HSC", shape = "HSC", :
formal argument "color" matched by multiple actual arguments
can you tell me how do i just label the samples
i m using this...but it seems its labelling the genes not the samples...
I don't know your data format. See the example below I created from sample data. You can replicate accordingly. Provide output of
head(data1)
to generate for your data.