[R] How to include factor levels into plot title?

2014-07-09 Thread Bea GD
Hi all, I'd like to include the levels of one of my variables in the title of a plot. I'd like these factor levels to be concatenated. E.g. 'These are the levels: setosa, versicolor, virginica'. I've been working with this code but I don't get the desired results. Any suggestions would be a

Re: [R] How to plot individual pdf files for each wrapped plot with ggplot2?

2014-07-01 Thread Bea GD
(x=total_bill, y = tip/total_bill)) +geom_point(shape=1) plot(sp) dev.off() } } On Mon, Jun 30, 2014 at 10:23 AM, Bea GD aguitatie...@hotmail.com mailto:aguitatie...@hotmail.com wrote: Hi, I'm working with tips data from reshape package. library(reshape2) I'm

Re: [R] How to plot individual pdf files for each wrapped plot with ggplot2?

2014-07-01 Thread Bea GD
Just solved the first problem! I had to generate a plot and then plotted. Now it's saved into pdf. Only the second issue: *2. I don't know how to write the code to get the 8 sex/day combinations.* Thanks! On 01/07/2014 12:59, Bea GD wrote: Thanks a lot for your reply Trevor! I've been

[R] How to plot individual pdf files for each wrapped plot with ggplot2?

2014-06-30 Thread Bea GD
Hi, I'm working with tips data from reshape package. library(reshape2) I'm saving my plots as pdf and I was wondering whether it was possible to print a different pdf for each 'wrapped' plot. Using the code below as an example, I'd like to get 8 independent pdf files for each sex ~ day

[R] Loops to produce plots and leyend

2014-06-20 Thread Bea GD
I've tried several things but I don't manage to get this plot right. Any help greatly appreciated! I'm running a for loop to produce 4 plots at once. Each plot should only show data points for a specific group (i.e. 4 plots for groups 1 to 4). The coordinates of the points should be petal

Re: [R] Loop to extract from variables in the workspace

2014-04-23 Thread Bea GD
Dear Frede, Sorry for the late reply, yesterday I was out of office. Thanks so much for your code! It has just compacted in a few lines what I had written in several 'paragraphs'! To be honest, I'm not familiar to work with lists in R. I think one of its main advantages is the reduced size

[R] Clear selected objects from workspace

2014-04-23 Thread Bea GD
Dear R users, I've got over a hundred R objects in the workspace. They all follow a pattern for years and months. Like this: TT_1981_1, TT_1981_2, TT_1981_3, . . . . TT_1981_12 . . . TT_2010_1, . . . If now, I'd like to remove a selection of them, how is the best way to do it? Currently I

Re: [R] Clear selected objects from workspace

2014-04-23 Thread Bea GD
Thank you a lot Jim. Much cleaner now! On 23.04.2014 12:01, Jim Lemon wrote: On 04/23/2014 07:54 PM, Bea GD wrote: Dear R users, I've got over a hundred R objects in the workspace. They all follow a pattern for years and months. Like this: TT_1981_1, TT_1981_2, TT_1981_3, . . . . TT_1981_12

Re: [R] netCDF to raster and spatial projection

2014-04-16 Thread Bea GD
Hi Frede, Thanks so much for your reply! I've tried what you said but I get the following error: Error in spTransform(rasterDF1, crs(+init=epsg:21781)) : load package rgdal for spTransform methods I've checked search() and rgdal is before sp. search() [1] .GlobalEnvpackage:chron

Re: [R] netCDF to raster and spatial projection

2014-04-16 Thread Bea GD
. Please refer to www.vestas.com/legal/notice If you have received this e-mail in error please contact the sender. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Frede Aakmann Tøgersen Sent: 16. april 2014 12:11 To: Bea GD; r-help@r