search for: sub_test_df2

Displaying 3 results from an estimated 3 matches for "sub_test_df2".

Did you mean: sub_test_df1
2017 Aug 26
0
about multi-optimal points
...select by some variable: sub_test_df1 <- subset(test_df, ID < 5) ggplot(data=sub_test_df1, aes(x=v1,y=v2, colour = as.factor(ID))) + geom_point()+ theme_bw()+ xlab('Variable 1')+ ylab('Variable 2') Or sample a number of random rows using samle() if this is your intention. sub_test_df2 <- test_df[sample(x = 1:nrow(test_df), size = 10), ] ggplot(data=sub_test_df2, aes(x=v1,y=v2, colour = as.factor(ID))) + geom_point()+ theme_bw()+ xlab('Variable 1')+ ylab('Variable 2') HTH Ulrik On Fri, 25 Aug 2017 at 21:38 lily li <chocold12 at gmail.com> wrote: &gt...
2017 Aug 25
2
about multi-optimal points
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 all the points on one figure though, and have the code below. I drew two ggplots to show their
2017 Aug 26
1
about multi-optimal points
...t_df1 <- subset(test_df, ID < 5) > > ggplot(data=sub_test_df1, aes(x=v1,y=v2, colour = as.factor(ID))) + > geom_point()+ theme_bw()+ > xlab('Variable 1')+ ylab('Variable 2') > > Or sample a number of random rows using samle() if this is your intention. > sub_test_df2 <- test_df[sample(x = 1:nrow(test_df), size = 10), ] > > ggplot(data=sub_test_df2, aes(x=v1,y=v2, colour = as.factor(ID))) + > geom_point()+ theme_bw()+ > xlab('Variable 1')+ ylab('Variable 2') > > HTH > Ulrik > > On Fri, 25 Aug 2017 at 21:38 lily li...