search for: your_subset

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

2016 Apr 24
1
assign color to subsets
...y, April 24, 2016 9:16 AM, jim holtman <jholtman at gmail.com> wrote: > > > > You never did provide a reproducible example or say how you wanted to > plot. Here is a way to get a subset of t1 or t2, and you can then use it > as input to ggplot: > > library(dplyr) > your_subset <- df %>% > mutate(key = grep(".*(t1|t2).*", "\\1", Command, value = TRUE)) > %>% > filter(!(Command %in% c('t1', 't2'))) > > This will give you a subset with just t1/t2 and you can use 'key' as the > colour...
2016 Apr 24
0
assign color to subsets
...>On Sunday, April 24, 2016 9:16 AM, jim holtman <jholtman at gmail.com> wrote: > > > >You never did provide a reproducible example or say how you wanted to plot. Here is a way to get a subset of t1 or t2, and you can then use it as input to ggplot: > >library(dplyr) >your_subset <- df %>% > mutate(key = grep(".*(t1|t2).*", "\\1", Command, value = TRUE)) %>% > filter(!(Command %in% c('t1', 't2'))) > >This will give you a subset with just t1/t2 and you can use 'key' as the colour option for gg...
2016 Apr 23
4
assign color to subsets
Hi I have the following df and I created two subsets but I don't know how to use these subsets as the colors of my plot. data.frame': 36919 obs. of 162 variables $TE :int 38,41,11,52,48,75,..... $TR :int 100,210,548,546,..... $Command :factor W/2229 levels
2016 Apr 24
0
assign color to subsets
...ot;, df$Command, fixed=TRUE) On Sunday, April 24, 2016 9:16 AM, jim holtman <jholtman at gmail.com> wrote: You never did provide a reproducible example or say how you wanted to plot. Here is a way to get a subset of t1 or t2, and you can then use it as input to ggplot: library(dplyr) your_subset <- df %>% mutate(key = grep(".*(t1|t2).*", "\\1", Command, value = TRUE)) %>% filter(!(Command %in% c('t1', 't2'))) This will give you a subset with just t1/t2 and you can use 'key' as the colour option for ggplot. Jim Ho...