search for: sub_test_df1

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

Did you mean: sub_test_df2
2017 Aug 26
1
about multi-optimal points
...orm(20), v2 = rnorm(20), v3 = rnorm(20)) ggplot(data=test_df, aes(x=v1,y=v2, colour = as.factor(ID))) + geom_point()+ theme_bw()+ xlab('Variable 1')+ ylab('Variable 2') How to choose a number of samples from the dataset you can use the subset function to 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 =...
2017 Aug 26
1
about multi-optimal points
...)) > > ggplot(data=test_df, aes(x=v1,y=v2, colour = as.factor(ID))) + > geom_point()+ theme_bw()+ > xlab('Variable 1')+ ylab('Variable 2') > > How to choose a number of samples from the dataset you can use the subset > function to 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_t...
2017 Aug 25
1
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