[R] Plotting accumulated data

2011-01-28 Thread Ottar Kvindesland
Hello all I have the data frame with this: ID DATETIME TRN TRN_S 1 1192756 2010-06-23 15:39:07 13.420 0.2236667 2 1192757 2010-06-23 15:40:07 13.805 0.2300833 3 1192758 2010-06-23 15:41:07 13.860 0.231 4 1192759 2010-06-23 15:42:07 13.750 0.2291667 5 1192760

Re: [R] Removing NA in ggplot

2010-11-06 Thread Ottar Kvindesland
OK, any reason why ggplot2 does not allow filtering of NA? ottar On 6 November 2010 15:23, Jeff Newmiller wrote: > Create a subset of your data that excludes the NAs before you feed it to > ggplot. > > "Ottar Kvindesland" wrote: > > >Hi list, > > > &g

[R] Removing NA in ggplot

2010-11-06 Thread Ottar Kvindesland
Hi list, I just got stuck with this one: In Data I have the sets age (numbers 1 to 99 and NA) and gender (M, F and NA). Then getting some nice plots using ggplot(data, aes(age[na.exclude(gender)])) + geom_histogram( binwidth = 3, aes(y = ..density.. ), fill = "lightblue" ) + facet_grid( gende

Re: [R] Time in ggplot2

2010-06-22 Thread Ottar Kvindesland
t;http://master.kvindesland.no/R/failed_data.Rdata";)) > > On Mon, Jun 21, 2010 at 3:24 PM, Ottar Kvindesland > wrote: > > Thanks Hadley for taking the interest here. > > > > The data sets are a bit large and I have placed them available for your > > download on

Re: [R] Time in ggplot2

2010-06-21 Thread Ottar Kvindesland
Hadley > > On Sun, Jun 20, 2010 at 4:38 PM, Ottar Kvindesland > wrote: > > I have a problem that puzzles me a bit today. When loading off data from > a > > database and plotting using ggplot2, I wish to present data as a time > series > > with time of day. The cod

[R] Time in ggplot2

2010-06-20 Thread Ottar Kvindesland
I have a problem that puzzles me a bit today. When loading off data from a database and plotting using ggplot2, I wish to present data as a time series with time of day. The code is text-book like as shown below: # Fetch data con <- dbConnect(dbDriver("MySQL"), user="user", password = "pwd", dbnam

[R] Zero counts lost with table() in functions

2010-06-14 Thread Ottar Kvindesland
Hi, I am collecting replies from a survey and counts replies by the table() function. The function below carries two data frames and counts the observations of the findings in the first parameter vector given the value of the second as shown in the code below. My trouble is that the vector kp_vec

[R] Analyzing non-numerical data

2010-05-03 Thread Ottar Kvindesland
After having read through some literature on R, I am happy with collecting it, and visualizing numbers. Unfortunately I do find it hard to compare and visualize string data. The data is from a LimeSurvey with lots of YES/NO or multi-choice questions (check-boxes) Among the check-boxes there a coup

[R] Using R to analyze limesurvey data

2010-03-24 Thread Ottar Kvindesland
Hello everyone, I have a survey on LimeSurvey ( https://www.limeservice.com/ ) going and I am preparing data analysis. Data exports to R dumps are completed and works. I have slowly started learning R but would really appreciate some assistance in helping me fly faster. I do understand that this