Re: [R] about multi-optimal points

2017-08-26 Thread John
On Sat, 26 Aug 2017 12:38:35 -0600 lily li wrote: > Hi Ulrik, > > Thanks for your suggestion, but it was not what I meant. I tried to > use the rPref package but just got a very small sample and felt > clueless. > Lily, It would help if you could provide some additional

Re: [R] about multi-optimal points

2017-08-26 Thread lily li
Hi Ulrik, Thanks for your suggestion, but it was not what I meant. I tried to use the rPref package but just got a very small sample and felt clueless. On Sat, Aug 26, 2017 at 12:37 AM, Ulrik Stervbo wrote: > HI lily, > > for the colouring of individual points you can

Re: [R] about multi-optimal points

2017-08-26 Thread Ulrik Stervbo
HI lily, for the colouring of individual points you can set the colour aesthetic. The ID is numeric so ggplot applies a colour scale. If we cast ID to a factor we get the appropriate colouring. test_df <- data.frame(ID = 1:20, v1 = rnorm(20), v2 = rnorm(20), v3 = rnorm(20)) ggplot(data=test_df,

[R] about multi-optimal points

2017-08-25 Thread lily li
Hi R users, I have some sets of variables and put them into one dataframe, like in the following. How to choose a specific set of pareto front, such as 10 from the current datasets (which contains more than 100 sets)? And how to show the 10 points on one figure with different colors? I can put