Re: [R] Extracting data from density plots

2014-06-13 Thread Adams, Jean
I don't know if you can get the information from the plot, but you can certainly get it from the density() function directly. For example, # fake data TestVar <- rnorm(60) type <- rep(c("Bottom", "Other", "Top"), 20) # density of TestVar for each type, estimated at 100 points along range of Test

[R] Extracting data from density plots

2014-06-13 Thread Parimal Lokhande
I have a dataframe ​df ​ with 3 columns. Details ​of df are ​ as follows > summary(df) DateTestVartype Min. :2002-05-10 00:00:00 Min. :-3.8531 Bottom: 313 1st Qu.:2005-05-09 12:00:00 1st Qu.:-0.7773 Other :2501 Median :2008-05-07 00: