genes.interes = c('MX1' ,"ACE2" , "ACAT1")
ggplot(data = datos, aes(x=positivity, y = MX1)) + geom_violin()
for (i in 1:3){
gen = genes.interes[i]
ploteo = ggplot(data = datos, aes(x=positivity, y = datos [gen])) +
geom_violin() +
ylab(paste(gen, "expression \n log2 (norm counts +1)"))
print(ploteo)
}
And this is the error Don't know how to automatically pick scale for object of type data.frame. Defaulting to continuous. Error in is.finite(x) : default method not implemented for type 'list'