Skip to content
Prev 377214 / 398502 Next

Different stack barplots - same color legends

Say your dataframe is named prb.df:

oldnames<-names(prb.df)
ncol<-ncols(prb.df)
names(prb.df)<-paste0("Q",1:ncol)
barplot(...,names.arg=oldnames,...)

Jim

On Fri, Nov 2, 2018 at 1:56 AM P. Roberto Bakker
<robertobakker at gmail.com> wrote: