Re: [R] Help with the plot function

2017-06-20 Thread André Luis Neves
=2) >> mtext("Bud Break (Julian Day)", side=4, padj=4) >> arrows(g1$YEAR,g1$BUD, g1$YEAR,g1$BUD + g1$BUD_SE, length=0.05, angle=90) >> arrows(g1$YEAR,g1$BUD, g1$YEAR,g1$BUD-g1$BUD_SE, length=0.05, angle=90) >> >> plot(T_MAR~YEAR, type="l", pch=19, ann=F,

Re: [R] Help with the plot function

2017-06-20 Thread André Luis Neves
004), > ylim=c(0,12), data=g1) > > title(ylab="Temperature (°C)",xlab="Year") > axis(1, at=seq(1996, 2004, 2)) > axis(2, at=c(0,3,6,9,12), las=2) > > I am quite close to what you probably expect. You need modify axes and > their annotation, which is left fo

Re: [R] Help with the plot function

2017-06-19 Thread PIKAL Petr
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of André Luis > Neves > Sent: Tuesday, June 20, 2017 6:29 AM > To: Bert Gunter > Cc: R mailing list > Subject: Re: [R] Help with the plot function > > Hi, Bert: > Yes, I studied the functions you sugges

Re: [R] Help with the plot function

2017-06-19 Thread André Luis Neves
Hi, Bert: Yes, I studied the functions you suggested, but I didn't get to adapt it to my example whose reproducible code I sent in my first email. Here it is the code of the functions I studies: ## par par(mfrow = c(2, 3)) par(cex = 0.6) par(mar = c(3, 3, 0, 0), oma = c(1, 1, 1, 1)) for (i in 1:6

Re: [R] Help with the plot function

2017-06-19 Thread Bert Gunter
1. Did you study the functions (esp. ?layout) to which I referred you? 2. Show us your code! -- "to no avail" is meaningless! -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom Co

Re: [R] Help with the plot function

2017-06-19 Thread André Luis Neves
I'm trying to recreate a graph similar to the last one found on this link: https://sites.ualberta.ca/~lkgray/uploads/7/3/6/2/7362679/6c_-_line_plots_with_error_bars.pdf The difference is that I want budbreak on the top, and the temperatures at the bottom. I tried to set par before each graph and

Re: [R] Help with the plot function

2017-06-19 Thread Bert Gunter
See ?layout ?split.screen ?par (the mfrow and mfcol values) depending exactly on what you want to do and how you want to do it. Essentially, these all allow you to make separate plots at different regions of the device. Cheers, Bert Bert Gunter "The trouble with having an open mind is tha

[R] Help with the plot function

2017-06-19 Thread André Luis Neves
Dear friends, I have the following dataframe: YEAR <- c(1996 , 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 ) T_MAR <- c(2.8, 6.5, 5.4,2.4, 4, 4.1, 3, 4.4, 4.5) T_APR <- c(5.7, 7.8, 7.7, 4.6, 4.7, 6.2,5.7, 5.9, 7) T_MAY <- c(7, 8.8, 10, 6, 5.5, 7.6, 8.5, 7.3, 10.2) BUD <- c(87, 98, 93, 85, 89,