Re: [R] Adding annotations to qplot from a data frame

2012-09-16 Thread Euan Reavie
Thank you for the many replies on this issue. I turns out qplot is not suited to multiple annotations, so the best suggestions were to use ggplot. The following worked for making an annotated stacked bar plot: ggplot(algaedata) + geom_bar(aes(x = year, y = cellsperml, colour = DIV, group = DIV

[R] Adding annotations to qplot from a data frame

2012-09-13 Thread Euan Reavie
Any help would be appreciated in getting these annotations to work with qplot. Best - Euan Reavie. U. Minnesota. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/

[R] Problems with labels and scaling in star diagrams

2010-04-16 Thread Euan Reavie
row (e.g. stardata[1,]) but that gives me an error "incorrect number of dimensions" when I try to generate the diagram. So, I seem to be unable to plot a single star diagram; it must be two or more. Many thanks - Euan. Euan Reavie, University of Minnesota Duluth.

[R] Using a string as a variable name - revisited

2010-04-01 Thread Euan Reavie
I would like to revisit a problem that was discussed previously (see quoted discussion below). I am trying to do the same thing, using a string to indicate a column with the same name. I am making "foo" a string taken from a list of names. It matches the row where "item" = 5, and picks the correspo

[R] map2poly - map lat/long cannot be unconstrained?

2010-03-15 Thread Euan Reavie
Using the maptools function "map2poly" I have created a map/polylist object - a map of the Great Lakes. My goal is to passively plot additional data on this map. Unfortunately I am not able to change (distort) the relative scale of the axes for the map, and so the sample points do not line up corre

Re: [R] remove a row from a dataframe, row names disappear - solution

2010-02-05 Thread Euan Reavie
, which in this case is a vector. Vectors have > no rows, and thus no row names. > > You need the drop=FALSE argument, as in > ENV <- ENV[-1, , drop=FALSE] > > Sarah > > On Fri, Feb 5, 2010 at 9:44 AM, Euan Reavie wrote: > > I find this odd because it doesn't app

[R] remove a row from a dataframe, row names disappear

2010-02-05 Thread Euan Reavie
I find this odd because it doesn't appear to happen in larger datasets. I have the following data set ENV with the first column set as row.names: > ENV TPlog 001S29H 0.601 002S42H 0.602 003S43S 0.779 004S43S 0.702 005S51H 0.978 006S52P 2.718 If I apply > ENV <- ENV[-1,] # remove f

Re: [R] combining data frames in a list - how do I add breaks?

2010-01-31 Thread Euan Reavie
With Jim's help, the solution is as follows... -Original Message- From: jim holtman [mailto:jholtman * at sign * gmail.com] Sent: Sunday, January 31, 2010 5:41 PM To: Euan Reavie Subject: Re: [R] combining data frames in a list - how do I add breaks? Your 'combined' w

[R] combining data frames in a list - how do I add breaks?

2010-01-31 Thread Euan Reavie
I'm a week-old R user, and have become stuck trying to create usable CSV outputs for post-processing. I am using the package Rioja, which provides small datasets of results. I am running several analyses in a loop and iteratively adding the results to a *list* ("combined"). Within each iteration I