search for: acolor

Displaying 4 results from an estimated 4 matches for "acolor".

Did you mean: color
2017 Jul 16
2
About doing figures
...emon <drjimlemon at gmail.com> wrote: > Hi lily, > As I have no idea of what the "true record" is, I can only guess. > Maybe this will help: > > # get some fairly distinct colors > rainbow_colors<-rainbow(9) > # this should sort the numbers in dfm$A > dfm$Acolor<-factor(dfm$A) > plot(dfm$B,dfm$C,pch=ifelse(dfm$DF==1,1,19), > col=rainbow_colors[as.numeric(dfm$Acolor)]) > legend("bottom",legend=sort(unique(dfm$A)), > fill=rainbow_colors) > legend(25,35,c("DF=1","DF=2"),pch=c(1,19)) > > Jim > > &gt...
2017 Jul 16
0
About doing figures
Hi lily, As I have no idea of what the "true record" is, I can only guess. Maybe this will help: # get some fairly distinct colors rainbow_colors<-rainbow(9) # this should sort the numbers in dfm$A dfm$Acolor<-factor(dfm$A) plot(dfm$B,dfm$C,pch=ifelse(dfm$DF==1,1,19), col=rainbow_colors[as.numeric(dfm$Acolor)]) legend("bottom",legend=sort(unique(dfm$A)), fill=rainbow_colors) legend(25,35,c("DF=1","DF=2"),pch=c(1,19)) Jim On Sun, Jul 16, 2017 at 3:43 PM, lily li <...
2017 Jul 16
2
About doing figures
Hi R users, I still have the problem about plotting. I wanted to put the datasets on one figure, x-axis represents values B, y-axis represents values C, while different colors label column A. Each record uses a circle on the figure, while hollow circles represent DF=1 and solid circles represent DF=2. I put my code below, but the A labels do not correspond to the true record, so I don't know
2017 Jul 16
0
About doing figures
...wrote: > >> Hi lily, >> As I have no idea of what the "true record" is, I can only guess. >> Maybe this will help: >> >> # get some fairly distinct colors >> rainbow_colors<-rainbow(9) >> # this should sort the numbers in dfm$A >> dfm$Acolor<-factor(dfm$A) >> plot(dfm$B,dfm$C,pch=ifelse(dfm$DF==1,1,19), >> col=rainbow_colors[as.numeric(dfm$Acolor)]) >> legend("bottom",legend=sort(unique(dfm$A)), >> fill=rainbow_colors) >> legend(25,35,c("DF=1","DF=2"),pch=c(1,19)) >&gt...