Re: [R] Help with plotting and date-times for climate data

2023-09-15 Thread Martin Møller Skarbiniks Pedersen
Change geom_point(aes(y = tmax_mean, color = "blue")) to geom_point(aes(y = tmax_mean), color = "blue") if you want blue points. aes(color = ) does not set the color of the points. aes(color = ) takes a column (best if it is a factor) and uses that for different colors. /Martin On Tue, Sep

Re: [R] Help with plotting and date-times for climate data

2023-09-14 Thread Richard O'Keefe
ne is provide an example where min and max could have > > > a real world use. I use max(temp) over some interval and then > > > update an accumulated thermal units variable based on the outcome. > > > That detail is not evident in the original request. > > > > > &g

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Ebert,Timothy Aaron
t the date (say Day). Group_by the day and apply a max function to the grouped data. Then plot the result. Tim -Original Message- From: Kevin Zembower Sent: Wednesday, September 13, 2023 3:26 PM To: Ebert,Timothy Aaron ; Richard O'Keefe Cc: r-help@r-project.org Subject: Re: [R] Help wit

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Kevin Zembower via R-help
Kevin Zembower > Sent: Wednesday, September 13, 2023 2:05 PM > To: Ebert,Timothy Aaron ; Richard O'Keefe > > Cc: r-help@r-project.org > Subject: Re: [R] Help with plotting and date-times for climate data > > [External Email] > > Well, I looked for this, on both the NWS

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Ebert,Timothy Aaron
; Richard O'Keefe Cc: r-help@r-project.org Subject: Re: [R] Help with plotting and date-times for climate data [External Email] Well, I looked for this, on both the NWS and WeatherUnderground, but couldn't find what I was looking for. Didn't check Weather.com, but if you can find a chart

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Kevin Zembower via R-help
how far away the trip will be. > > -Original Message- > From: Kevin Zembower > Sent: Wednesday, September 13, 2023 1:22 PM > To: Richard O'Keefe ; Ebert,Timothy Aaron > > Cc: r-help@r-project.org > Subject: Re: [R] Help with plotting and date-times for climate data >

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Ebert,Timothy Aaron
: Wednesday, September 13, 2023 1:22 PM To: Richard O'Keefe ; Ebert,Timothy Aaron Cc: r-help@r-project.org Subject: Re: [R] Help with plotting and date-times for climate data [External Email] Tim, Richard, y'all are reading too much into this. I believe that TMAX is the high temperature of the day

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Kevin Zembower via R-help
Rui, thanks so much for your clear explanation, solution to my problem, and additional help with making the graph come out exactly as I was hoping. I learned a lot from your solution. Thanks, again, for your help. -Kevin On Tue, 2023-09-12 at 23:06 +0100, Rui Barradas wrote: > Às 21:50 de

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Kevin Zembower via R-help
riginal request. > > > > Tim > > > > -Original Message- > > From: R-help On Behalf Of Richard > > O'Keefe > > Sent: Wednesday, September 13, 2023 9:58 AM > > To: Kevin Zembower > > Cc: r-help@r-project.org > > Subject: Re: [R] Help

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Richard O'Keefe
; Tim > > -Original Message- > From: R-help On Behalf Of Richard O'Keefe > Sent: Wednesday, September 13, 2023 9:58 AM > To: Kevin Zembower > Cc: r-help@r-project.org > Subject: Re: [R] Help with plotting and date-times for climate data > > [External Email] > &

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Ebert,Timothy Aaron
On Behalf Of Richard O'Keefe Sent: Wednesday, September 13, 2023 9:58 AM To: Kevin Zembower Cc: r-help@r-project.org Subject: Re: [R] Help with plotting and date-times for climate data [External Email] Off-topic, but what is a "mean temperature max" and what good would it do you t

Re: [R] Help with plotting and date-times for climate data

2023-09-13 Thread Richard O'Keefe
Off-topic, but what is a "mean temperature max" and what good would it do you to know you if you did? I've been looking at a lot of weather station data and for no question I've ever had (except "would the newspapers get excited about this") was "max" (or min) the answer. Considering the way that

Re: [R] Help with plotting and date-times for climate data

2023-09-12 Thread Rui Barradas
Às 21:50 de 12/09/2023, Kevin Zembower via R-help escreveu: Hello, I'm trying to calculate the mean temperature max from a file of climate date, and plot it over a range of days in the year. I've downloaded the data, and cleaned it up the way I think it should be. However, when I plot it, the

[R] Help with plotting and date-times for climate data

2023-09-12 Thread Kevin Zembower via R-help
Hello, I'm trying to calculate the mean temperature max from a file of climate date, and plot it over a range of days in the year. I've downloaded the data, and cleaned it up the way I think it should be. However, when I plot it, the geom_smooth line doesn't show up. I think that's because my x

Re: [R] Help in Plotting in "fArma" Package

2018-01-27 Thread Moyukh Laha
Thank you very much. Will try this. On Fri, Jan 26, 2018 at 11:34 PM, David Winsemius wrote: > > > On Jan 26, 2018, at 9:51 AM, MacQueen, Don wrote: > > > > What Dave said, plus here's a hint. Try this example (which uses base > graphics): > > > >

Re: [R] Help in Plotting in "fArma" Package

2018-01-26 Thread David Winsemius
> On Jan 26, 2018, at 9:51 AM, MacQueen, Don wrote: > > What Dave said, plus here's a hint. Try this example (which uses base > graphics): > > plot(1:5) > plot(1:5, cex.lab=2) > > Then look at the help page for par > help('par') > or > ?par > to search for other

Re: [R] Help in Plotting in "fArma" Package

2018-01-26 Thread MacQueen, Don
What Dave said, plus here's a hint. Try this example (which uses base graphics): plot(1:5) plot(1:5, cex.lab=2) Then look at the help page for par help('par') or ?par to search for other graphics parameters (base graphics) you can use to change various things. Success will depend, as

Re: [R] Help in Plotting in "fArma" Package

2018-01-25 Thread David Winsemius
The documentation say that additional arguments will be passed. I suspect this will be a base graphics plot. You should look at the code of plot.rsfit to determine which arguments get processed. Sent from my iPhone > On Jan 25, 2018, at 10:30 AM, Moyukh Laha wrote: >

[R] Help in Plotting in "fArma" Package

2018-01-25 Thread Moyukh Laha
Hello, I am new to R and for some of my research work I am using 'fArma' package to estimate the Hurst parameter of a time series. When I am ding the following command : rsFit(data, doplot = TRUE) I am getting the R/S plot for that time series

Re: [R] Help in plotting

2016-07-31 Thread David Winsemius
> On Jul 31, 2016, at 8:07 AM, Bhaskar Mitra wrote: > > Hello Everyone, > > > I have a data frame with 2 columns as shown at the end of this mail. I want > to plot the data in column A; > however I want the data-points in column A to be of different color based >

[R] Help in plotting

2016-07-31 Thread Bhaskar Mitra
Hello Everyone, I have a data frame with 2 columns as shown at the end of this mail. I want to plot the data in column A; however I want the data-points in column A to be of different color based on conditions in column B. i.e all data in column A corresponding to value 0 in column B should be

[R] help with plotting error bars on xyplot!

2015-03-03 Thread Paulo Pagliari
Dear R helpers, I am trying to create a xyplot similar to this one: https://stat.ethz.ch/pipermail/r-help/2008-June/164968.html I can plot the data correctly when I only have one Y. However, I need to add another Y (Y2) to the plot and each Y must have their own error bars and also different

Re: [R] help on plotting series with different x-axis values on a graph with one x-axis

2013-02-11 Thread Jim Lemon
On 02/09/2013 11:52 PM, Eike Marie Thaysen wrote: Hi, I have run into this problem a couple of times now and hope you can help! If I want to plot mulitiple series with differing x-axis values (however, all in the same range) in 1 plot with one common axis R obstruses the plots. E.g. if I

Re: [R] help on plotting series with different x-axis values on a graph with one x-axis

2013-02-10 Thread John Kane
Kingston ON Canada -Original Message- From: e...@kt.dtu.dk Sent: Sat, 9 Feb 2013 12:52:32 + To: r-help@r-project.org Subject: [R] help on plotting series with different x-axis values on a graph with one x-axis Hi, I have run into this problem a couple of times now and hope you

[R] help on plotting series with different x-axis values on a graph with one x-axis

2013-02-09 Thread Eike Marie Thaysen
Hi, I have run into this problem a couple of times now and hope you can help! If I want to plot mulitiple series with differing x-axis values (however, all in the same range) in 1 plot with one common axis R obstruses the plots. E.g. if I plot water content against time and I start with the

Re: [R] help on plotting series with different x-axis values on a graph with one x-axis

2013-02-09 Thread David Winsemius
On Feb 9, 2013, at 4:52 AM, Eike Marie Thaysen wrote: Hi, I have run into this problem a couple of times now and hope you can help! If I want to plot mulitiple series with differing x-axis values (however, all in the same range) in 1 plot with one common axis R obstruses the plots.

Re: [R] Help with plotting plsr loadings

2011-06-10 Thread Bjørn-Helge Mevik
Amit Patel amitrh...@yahoo.co.uk writes: plot(BHPLS1, loadings, comps = 1:2, legendpos = topleft, labels = numbers, xlab = nm) Error in loadingplot.default(x, ...) : Could not convert variable names to numbers. str(BHPLS1_Loadings) loadings [1:8892, 1:60] -0.00717 0.00414 0.02611

[R] Help with plotting plsr loadings

2011-06-08 Thread Amit Patel
Hi I am attempting to do a loadings plot from a plsr object. I have managed to do this using the gasoline data that comes with the pls package. However when I conduct this on my dataset i get the following error message. plot(BHPLS1, loadings, comps = 1:2, legendpos = topleft, labels =

Re: [R] Help with plotting a line that is multicoloured based on levels of a factor

2011-03-28 Thread Pam Allen
Thank you Jim and David for your help. The 'levels' call is not a misdirection, in my actual dataset it is necessary because the flows aren't symmetrical. So while your solution is quite elegant David, it doesn't apply to my actual data, just the example. Too bad, it's quite nice! I do

Re: [R] Help with plotting a line that is multicoloured based on levels of a factor

2011-03-28 Thread Peter Ehlers
On 2011-03-28 09:33, Pam Allen wrote: Thank you Jim and David for your help. The 'levels' call is not a misdirection, in my actual dataset it is necessary because the flows aren't symmetrical. So while your solution is quite elegant David, it doesn't apply to my actual data, just the example.

Re: [R] Help with plotting a line that is multicoloured based on levels of a factor

2011-03-25 Thread Pam Allen
Hello Baptiste and others, I tried your example with my dataset, and for a few days I thought it worked for me. But I realized yesterday that the result wasn't quite what I hoped for. In my actual data the flows aren't perfectly sinusoidal, and I used a series of ifelse queries to code the

Re: [R] Help with plotting a line that is multicoloured based on levels of a factor

2011-03-25 Thread David Winsemius
On Mar 25, 2011, at 3:23 PM, Pam Allen wrote: Hello Baptiste and others, I tried your example with my dataset, and for a few days I thought it worked for me. But I realized yesterday that the result wasn't quite what I hoped for. In my actual data the flows aren't perfectly sinusoidal,

Re: [R] Help with plotting a line that is multicoloured based on levels of a factor

2011-03-25 Thread Pam Allen
Hello again, I wrote an example that better represents my data, since the coloured points are actually consecutive, but with variable lengths: date=as.Date(c(1:300)) flow=sin(2*pi/53*c(1:300)) levels=c(rep(c(high,med,low),100)) data=cbind.data.frame(date, flow, levels) library(zoo) z -

Re: [R] Help with plotting a line that is multicoloured based on levels of a factor

2011-03-25 Thread Jim Lemon
On 03/26/2011 07:19 AM, Pam Allen wrote: Hello again, I wrote an example that better represents my data, since the coloured points are actually consecutive, but with variable lengths: date=as.Date(c(1:300)) flow=sin(2*pi/53*c(1:300)) levels=c(rep(c(high,med,low),100))

[R] Help with plotting a line that is multicoloured based on levels of a factor

2011-03-17 Thread Pamela Allen
Hi All, I'm trying to plot data that is a time series of flows that are associated with a specific level, and I would like each level to represent a colour in a line plot. Here is some data that approximates what I'm using: date=c(1:300) flow=sin(2*pi/53*c(1:300))

Re: [R] Help with plotting a line that is multicoloured based on levels of a factor

2011-03-17 Thread Tóth Dénes
Hi! Not an elegant solution, but seems to work: date - c(1:300) flow - sin(2*pi/53*c(1:300)) levels - factor(rep(c(high,med,low),100)) data - cbind.data.frame(date, flow, levels) colours - as.numeric(levels)+1 # interpolate resolution - 0.001 appres -

Re: [R] Help with plotting a line that is multicoloured based on levels of a factor

2011-03-17 Thread baptiste auguie
Hi, because each colour is defined on non-consecutive points, you'll probably need to cut the intervals to define segments around each point. One approach might be the following, d = transform(data, start = date - c(0, diff(date)/2), end = date + c(0, diff(date)/2) ) d$start.y = approx(d$date,

Re: [R] Help with plotting a line that is multicoloured based on levels of a factor

2011-03-17 Thread Tóth Dénes
Indeed, I forgot about the segments function. with(d,plot(date,flow,type=n)) with(d,segments(start,start.y,end,end.y,col=colour)) Hi, because each colour is defined on non-consecutive points, you'll probably need to cut the intervals to define segments around each point. One approach

Re: [R] Help with plotting a line that is multicoloured based on levels of a factor

2011-03-17 Thread David Winsemius
On Mar 17, 2011, at 6:33 PM, Pamela Allen wrote: Hi All, I'm trying to plot data that is a time series of flows that are associated with a specific level, and I would like each level to represent a colour in a line plot. Here is some data that approximates what I'm using: date=c(1:300)

[R] Help with plotting kohonen maps

2010-11-22 Thread Stella Pachidi
Dear all, I recently started using the kohonen package for my thesis project. I have a very simple question which I cannot figure out by myself: When I execute the following example code, from the paper of Wehrens and Buydens (http://www.jstatsoft.org/v21/i05/paper): R library(kohonen) Loading

Re: [R] help with plotting lines linking two sets of points?

2010-04-23 Thread Dennis Murphy
Hi: Does this work for you? df - read.table(textConnection( pool age age2 density body_length body_length2 11 7.4 11.3 25 0.887 1.322550 22 7.4 11.3 100 0.921 1.152000 33 7.4 11.3 250 0.896 1.136300 44 7.4 11.3 75 0.723

[R] help with plotting lines linking two sets of points?

2010-04-22 Thread Kristiina Hurme
Hello everyone, I'm trying to plot the initial and final size of some tadpoles and look at their growth rates (slope of line). They are divided into 6 densities, and so far I have plotted the initial and final sizes (these are means for a pool), and color coded for the 6 densities, but I want a

[R] help with plotting

2009-09-11 Thread Edward Chen
HI all, raw_urine = read.table(Z:\\bruce.9.3.09.sample.stability.analysis\\urine\\mz.spot.sam.dat.new, header = TRUE ) pvalue = read.table(Z:\\bruce.9.3.09.sample.stability.analysis\\urine\\all.urine.features.t.test.result, header = TRUE ) library(compositions) p = function(a,b){ y = pvalue[,a]

Re: [R] help with plotting

2009-09-11 Thread Steve Lianoglou
Hi Edward, On Sep 11, 2009, at 1:47 PM, Edward Chen wrote: HI all, raw_urine = read.table(Z:\\bruce.9.3.09.sample.stability.analysis\\urine\\mz.spot.sam.dat.new , header = TRUE ) pvalue = read.table(Z:\\bruce.9.3.09.sample.stability.analysis\\urine\\all.urine.features.t.test.result ,

Re: [R] Help in plotting a legend

2009-08-26 Thread Jim Lemon
Ashutosh Nandeshwar wrote: Hello, List, I am a new user of the R project, and I need some help in plotting a legend. I am using the PBSmapping library to plot map of Ohio and heat color it with the count of employees in each county. As a guide, I am using Data Mashups in R. I am able to

[R] Help in plotting a legend

2009-08-25 Thread Ashutosh Nandeshwar
Hello, List, I am a new user of the R project, and I need some help in plotting a legend. I am using the PBSmapping library to plot map of Ohio and heat color it with the count of employees in each county. As a guide, I am using Data Mashups in R. I am able to plot the map with the colors;

[R] help with plotting results of lda

2009-04-26 Thread pgseye
Hi, I've performed an lda and obtained a classification table for some of my data: efa.dfa-lda(groups~.,efa.scores.8,CV=T) str(efa.dfa) List of 5 $ class: Factor w/ 2 levels 1,2: 1 2 1 2 1 1 2 2 1 2 ... $ posterior: num [1:160, 1:2] 0.99083 0.00852 0.93983 0.23186 0.85931 ... ..-

Re: [R] help with plotting results of lda

2009-04-26 Thread Uwe Ligges
Works for me with library(MASS) plot(lda(Species~., data=iris)) hence you may want to profide the data to enable us to reproduce your problem... Uwe Ligges pgseye wrote: Hi, I've performed an lda and obtained a classification table for some of my data:

Re: [R] help with plotting results of lda

2009-04-26 Thread Prof Brian Ripley
On Sun, 26 Apr 2009, Uwe Ligges wrote: Works for me with library(MASS) plot(lda(Species~., data=iris)) hence you may want to profide the data to enable us to reproduce your problem... He is trying to plot the results from a cross-validation. As the help page clearly states, that is a

Re: [R] help needed: Plotting step by step.

2008-04-24 Thread Charles C. Berry
. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Atul Kulkarni Sent: Wednesday, April 23, 2008 9:07 AM To: r-help@r-project.org Subject: [R] help needed: Plotting step

Re: [R] help needed: Plotting step by step.

2008-04-24 Thread Atul Kulkarni
-8111 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Atul Kulkarni Sent: Wednesday, April 23, 2008 9:07 AM To: r-help@r-project.org Subject: [R] help needed: Plotting step by step. Hello, I have generated 2 Poisson

[R] help needed: Plotting step by step.

2008-04-23 Thread Atul Kulkarni
Hello, I have generated 2 Poisson processes and want to plot them on a single graph in a step by step manner in order to be able to compare them. I tried plot and biplot but it does not help, I could connect two points by hand for point graph if they were 5 or 10 I have more than 200 such point

Re: [R] help needed: Plotting step by step.

2008-04-23 Thread Greg Snow
] [mailto:[EMAIL PROTECTED] On Behalf Of Atul Kulkarni Sent: Wednesday, April 23, 2008 9:07 AM To: r-help@r-project.org Subject: [R] help needed: Plotting step by step. Hello, I have generated 2 Poisson processes and want to plot them on a single graph in a step by step manner in order

Re: [R] help needed: Plotting step by step.

2008-04-23 Thread Charles C. Berry
Of Atul Kulkarni Sent: Wednesday, April 23, 2008 9:07 AM To: r-help@r-project.org Subject: [R] help needed: Plotting step by step. Hello, I have generated 2 Poisson processes and want to plot them on a single graph in a step by step manner in order to be able to compare them. I tried plot

Re: [R] help in plotting

2007-11-25 Thread John Kane
That code seems to put the legend basically out of range. For the last line try x= 8 rather than 10. legend(x=8,y=.3,paste(Scale=,c(1,2,4,8)),lty=1:4) --- David Winsemius [EMAIL PROTECTED] wrote: G Ilhamto [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: I want to combine several

Re: [R] help in plotting

2007-11-25 Thread Duncan Murdoch
On 25/11/2007 1:00 PM, John Kane wrote: That code seems to put the legend basically out of range. For the last line try x= 8 rather than 10. legend(x=8,y=.3,paste(Scale=,c(1,2,4,8)),lty=1:4) Or use one of the named locations, e.g. legend(topright,paste(Scale=,c(1,2,4,8)),lty=1:4) Duncan

Re: [R] help in plotting

2007-11-25 Thread David Winsemius
Duncan Murdoch [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: On 25/11/2007 1:00 PM, John Kane wrote: That code seems to put the legend basically out of range. For the last line try x= 8 rather than 10. legend(x=8,y=.3,paste(Scale=,c(1,2,4,8)),lty=1:4) Or use one of the named

Re: [R] help in plotting

2007-11-24 Thread jim holtman
You can use color (col=), line type (lty=), line width (lwd=), plot character (pch=) --- take you choice. \the more plot we put, the more complex the graph. Is there any way to label each line; or other way just to make sure I know which one which? Thank you for the help, Ilham

Re: [R] help in plotting

2007-11-24 Thread David Winsemius
David Winsemius [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: This is a worked example taken from Seefeld and Kim's monograph: http://cran.r-project.org/doc/contrib/Seefeld_StatsRBio.pdf Sorry, boloxed the authors. By Kim Seefeld and Ernst Linder. -- David Winsemius

Re: [R] help in plotting

2007-11-24 Thread David Winsemius
G Ilhamto [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: I want to combine several plots in one graph. I did this: plot(a1); plot(a2, add=TRUE); ...plot(a5, add=TRUE) The problem is the more plot we put, the more complex the graph. Is there any way to label each line; or other way just

[R] help in plotting

2007-11-23 Thread G Ilhamto
Dear list, I want to combine several plots in one graph. I did this: plot(a1); plot(a2, add=TRUE); ...plot(a5, add=TRUE) The problem is the more plot we put, the more complex the graph. Is there any way to label each line; or other way just to make sure I know which one which? Thank you for the