Re: [R] Error in par(pin = p) : invalid value

2012-03-26 Thread Aurelie Cosandey Godin
Should of seen that! It works now. Thank you Duncan, Aurelie On 2012-03-26, at 8:39 AM, Duncan Murdoch wrote: > On 12-03-26 7:17 AM, Aurelie Cosandey Godin wrote: >> Dear list, >> >> I am getting an error message with "pin" and I am not quiet sure how to fix &g

[R] Error in par(pin = p) : invalid value

2012-03-26 Thread Aurelie Cosandey Godin
Dear list, I am getting an error message with "pin" and I am not quiet sure how to fix it. library(maps) op<-par(mar=c(1,1,1,1)) map(xlim=c(-40,-45),ylim=c(60,65), boundary=T, fill=T, col='gray95') >Error in par(pin = p) : invalid value specified for graphical parameter "pin" par("pin") > pa

Re: [R] Export a plot/figure to excel or word?

2012-03-14 Thread Aurelie Cosandey Godin
e and ask them if they can take any image formats? R > exports to most of them quite nicely: png, eps, jpeg, bitmap, svg, > etc. > > Michael > > On Wed, Mar 14, 2012 at 3:49 PM, Aurelie Cosandey Godin wrote: >> Hi all, >> >> I have created forest plots usi

[R] Export a plot/figure to excel or word?

2012-03-14 Thread Aurelie Cosandey Godin
f I can do this... Is this possible? I've tried the capture.output command, but I get a blank MS Word document. Thank you very much in advance, Best, Aurelie Aurelie Cosandey-Godin Ph.D. student, Department of Biology Industrial Graduate Fellow, WWF-Canada Dalhousie University | Biolo

Re: [R] Create a list object in a loop

2012-03-09 Thread Aurelie Cosandey Godin
t; b[[i]]<-ppp(a$longitude,a$latitude,marks=a$fTSUM,window=newW) > plot(b[[i]],main=i) > } > > Michael > > On Fri, Mar 9, 2012 at 10:48 AM, Aurelie Cosandey Godin wrote: >> Dear all, >> >> I'm trying to create a list of point patter

Re: [R] Create a list object in a loop

2012-03-09 Thread Aurelie Cosandey Godin
> www.r-statistics.com (English) > -- > > > > > On Fri, Mar 9, 2012 at 5:48 PM, Aurelie Cosandey Godin wrote: > Dear all, > > I'm trying to create a list of point patterns ppp.object {spatstat} in a loop. > My dataset

[R] Create a list object in a loop

2012-03-09 Thread Aurelie Cosandey Godin
Dear all, I'm trying to create a list of point patterns ppp.object {spatstat} in a loop. My dataset looks like this: > names(OT1);head(OT1);dim(OT1) [1] "EID" "latitude" "longitude" "month" "year" "CPUE" "TSUM" [8] "fTSUM" EID latitud

Re: [R] Polishing my geom_bar for publication

2011-12-04 Thread Aurelie Cosandey Godin
quot;summer", "winter"), labels=c("Spring", "Fall"))+ coord_flip() + theme_bw() + opts(axis.title.x = theme_text(size = 10), panel.grid.minor = theme_blank()) However, I am still trying to figure out how to fix the width of my two plots on my final pdf. I would app

[R] Polishing my geom_bar for publication

2011-12-04 Thread Aurelie Cosandey Godin
W'S","SKATES (NS)","THORNY","SMOOTH","ABYSSAL","LITTLE","DEEPWATER","JENSEN'S","WHITE","SOFT"))+ ylab("Biomass (Weight (kg)/tow)") + scale_fill_hue(name="Survey season", # Leg

[R] Combining some duplicated rows & summing one of their column

2011-11-06 Thread Aurelie Cosandey Godin
an once in 162 cases. > length(events$EID)-length(unique(events$EID)) [1] 162 I would like to combined each replicate EID together and sum their "catch". I've been trying a few things with the plyr package... but can't find a rather straightforward command. Any tips woul

[R] Deleting rows dataframe in R conditional to “if any of (a specific variable) is equal to”

2011-11-06 Thread Aurelie Cosandey Godin
9289 5 899 112 743 3L V26 2052 158 9299 5 899 512 746 3L W27 1129 147 Where t5[,26] correspond to t5$EID column. I'm sure it's simple, but I'm not sure how to remove all of these now from my t5 dataframe!

[R] Removal/selecting specific rows in a dataframe conditional on 2 columns

2011-11-01 Thread Aurelie Cosandey Godin
79 588 5 913 310 340 3O Q31 1800 189 5895 913 410 340 3O Q32 2142 179 Any tips on how extract this "zero" data.frame in R? Thank you very much in advance! Best, ~Aurelie Aurelie Cosandey-Godin Ph.D. stu