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
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
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
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
; 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
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
>
: 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
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
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
; 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]
>
&
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
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
À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
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
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):
> >
> >
> 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
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
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:
>
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
> 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
>
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
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
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
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
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
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.
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
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 =
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
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.
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
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,
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 -
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))
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))
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 -
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,
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
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)
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
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
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
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]
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
,
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
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;
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 ...
..-
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:
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
.
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
-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
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
]
[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
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
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
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
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
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
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
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
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
61 matches
Mail list logo