以下代码运行良好。我希望 xlabels 呈 45 角,因为它们很长,我不想改变那里的大小(我需要全名)。
mp <- barplot(v,names.arg = c("Lung Lavage Fluid","Erythroleukemic Cell Line",
"Blood Plasma","T - Cell Cell Line","Liver Whole Cell","B - Lymphocytes",
"panc","prostate","Bladder Urine"),cex.names=0.65,col = c(1,2,3,4,5,6,7,8,9),
main = val2,density = 50,angle = 45,xlab = "TISSUE",ylab = "EXPRESSION VALUE",
,border = "blue");
palette(c('blue','green','red','pink','brown','coral','deepskyblue','yellow','yellowgreen'));