can you tell me how do i just label the samples
p + gradient_color(c("red", "blue"))
i m using this...but it seems its labelling the genes not the samples...
• 0 views
•
link
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
This is because you provided color twice. Can not provide same argument multiple time
can you tell me how do i just label the samples
p + gradient_color(c("red", "blue"))
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.
library("ggplot2")
library(ggpubr)
data <- mpg
ggscatter(data,"cty","hwy",col="trans")
Log in to answer this question.