skip to Main Content

Split dataframe into two groups – Photoshop

I've simulated this data.frame: library(plyr); library(ggplot2) count <- rev(seq(0, 500, 20)) tide <- seq(0, 5, length.out = length(count)) df <- data.frame(count, tide) count_sim <- unlist(llply(count, function(x) rnorm(20, x, 50))) count_sim_df <- data.frame(tide=rep(tide,each=20), count_sim) And it can be plotted like this:…

VIEW QUESTION
Back To Top
Search