Displaying 20 results from an estimated 10000 matches similar to: "Multi-line plots - max Y?"
2009 Aug 28
2
new data.frame summed by date
Hi,
   I wonder if someone can suggest how to create a new data.frame Y
from X where X$PL_Pos is summed by each unique X$MyDate. Y should end
up with two (or more) columns Y$MyDate and Y$PL_Sum with its value
being the cumsum of all the values in X for that date. - a 'daily
cumsum'.
Thanks,
Mark
TStoDate = function (TSDate) {
	X = strptime(TSDate + 19e6L, "%Y%m%d")
2009 Jul 01
1
running count in data.frame
Hi,
   I need to keep a running count of events that have happened in my
data.frame. I found a document called usingR that had an example of
doing this for random coin flips and I tried to modify it. It seems to
sort of work in the beginning, but then it stops and I don't
understand why. I'm trying to duplicate essentially the Excel
capability of =SUM($A$1:$A(Row number))
   The example
2009 Jul 22
5
Multi-line comments?
Hi,
   I looked in the language definition and was surprised. Is there
really no multi-line/block comment defined in R?
   I wanted to comment out 20 lines that I'm moving to a function but
didn't want to delete them. Is there no defined way to get around
using a # on each of the 20 lines?
Thanks,
Mark
2009 Jul 23
1
howto create a list row-by-row as input to function call?
Hi,
   I'm having trouble within my function CalcPos to get it to call
CalcHorz with values from each row. I *think* it's calling CalcHorz
with the final values of the inputs and not the values from each row.
How can I do this properly in R?
   The values aa,bb,cc,dd are inputs. CalcPos first calculates V1 and
V2 vertically, and then I attempt to call CalcHorz to handle H1, H2 &
H3
2009 Jul 26
2
More complicated multi-plot layouts?
Hi,
   I made the attached picture by mocking up three separate plots sort
of like how I'd like to make a new plot. Hopefully it will get through
to the list.
   Is there a way to do this directly using par somehow? Or one of the
other plotting packages? Basically, multiple larger plot above
multiple groups of smaller plots? The smaller plots are just
par(mrow=c(2,3)) things, and I can
2009 Jul 01
2
?max (so far...)
Hi,
   I have a data.frame that is date ordered by row number - earliest
date first and most current last. I want to create a couple of new
columns that show the max and min values from other columns *so far* -
not for the whole data.frame.
   It seems this sort of question is really coming from my lack of
understanding about how R intends me to limit myself to portions of a
data.frame. I get the
2005 Apr 28
4
wine-20050419 - where to set audio driver type?
Hi,
   In a completely clean account that's never run Wine before I run
wine --version. Wine installs a new .wine directory but this Wine
directory has no config file. I looked in the 3 obvious files but none
of them seem to have an option for changing between OSS, Alsa and
JAck. where do I make this setting change now?
Thanks,
Mark
2009 Jul 06
2
ReShape chicks example - line plots
Hi,
   In the examples from the ReShape package there is a simple example
of using melt followed by cast that produces a smallish amount of
output about the chicks database. Here's the code:
library(reshape)
names(ChickWeight) <- tolower(names(ChickWeight))
chick_m <- melt(ChickWeight, id=2:4, na.rm=TRUE)
DietResults <- cast(chick_m, diet + chick ~ time)
DietResults
   My challenge
2020 Aug 25
1
sum() vs cumsum() implicit type coercion
>>>>> Tomas Kalibera 
>>>>>     on Tue, 25 Aug 2020 09:29:05 +0200 writes:
    > On 8/23/20 5:02 PM, Rory Winston wrote:
    >> Hi
    >> 
    >> I noticed a small inconsistency when using sum() vs cumsum()
    >> 
    >> I have a char-based series
    >> 
    >> > tryjpy$long
    >> 
    >> [1]
2020 Aug 23
2
sum() vs cumsum() implicit type coercion
Hi
I noticed a small inconsistency when using sum() vs cumsum()
 I have a char-based series
 > tryjpy$long
 [1] "0.0022"  "-0.0002" "-0.0149" "-0.0023" "-0.0342" "-0.0245" "-0.0022"
 [8] "0.0003"  "-0.0001" "-0.0004" "-0.0036" "-0.001"  "-0.0011"
2010 Nov 25
4
Cumsum with a max and min value
I have a vector of values -1, 0, 1, say
 
a <- c(0, 1, 0, 1, 1, -1, -1, -1, 0, -1, -1)
 
I want to create a vector of the cumulative sum of this, but I need to set a
maximum and minimum value for the cumsum, for example:
 
max_value <- 2
min_value <- -2
 
the expected result would be (0, 1, 1, 2, 2, 1, 0, -1, -1, -2, -2)
 
The only way I managed to do It, was
 
res <-
2014 Mar 12
3
Frecuencia absoluta acumulada por individuo y por año
Llego tarde al hilo, pero creo que se llega rápidamente al resultado con la 
complicidad del paquete "reshape2". Si DT es el data.table que escojo Francisco como
ejemplo:
> DT
    ID YEAR CANTIDAD
1: 100 2005        1
2: 100 2005        2
3: 100 2007        1
4: 100 2007        1
5: 100 2007        1
6: 120 2006        1
7: 120 2006        5
8: 120 2006        1
9: 120 2007        3
2005 Oct 23
1
Re: winebuild problems - wine-20050930 [SOLVED]
Sorry for the noise.
On 10/23/05, Mark Knecht <markknecht@gmail.com> wrote:
> On 10/23/05, Mark Knecht <markknecht@gmail.com> wrote:
> > Hi,
> >    Does anyone know what happened to the --debug option in winebuild?
> > It seems to have disappeared in more recent versions of Wine.
> >
> >    I am attempting to build a program that uses winebuild with
2009 Apr 21
2
multiple plots in same graph window
Hi,
I'm trying to make multiple plots in a same graph window in R. 
The multiple graphs are showing up in the right positions on the window, but I'm having the problem that the graphic window is being refreshed every time a new plot is drawn, so that I end up with only the last graph coming up; the previous ones are all erased
If I try to print in a .eps file directly, then I end up
2017 Jun 07
0
Determining which.max() within groups
cumsum() seems to be what you need.
This can probably be done more elegantly, but ...
out <- aggregate(Q ~ wyr, data = Daily, which.max)
tbl <- table(Daily$wyr)
out$Q <- out$Q + cumsum(c(0,tbl[-length(tbl)]))
out
## yields
   wyr  Q
1 1990  4
2 1991  6
3 1992  9
4 1993 15
5 1994 18
I leave the matter of Julian dates to you or others.
Cheers,
Bert
Bert Gunter
"The trouble
2018 Jun 08
2
C7, encryption, and clevis
> > so if it would work, replace shortname with short and short1?
With all of this hokey-pokey surrounding licensing and mac addresses, I wonder if this outfit is actually still in compliance with the terms of their license for this software, whatever it may be?
If the software licensed to run only on Machine X and Machine X has now been junked and replace by Machine Y,  then isn't the
2009 Jul 10
2
ReShape/cast question - sum of value in table
Hi,
   I've tried to capture the basics of this problem I'm having. Been
working on this for a couple of days and just cannot get past it. As a
test of this list software I've attached is a small text file zipped
up. I hope it gets through but if it doesn't I'll post the actual text
which is only 26 lines. Put it somewhere sensible and change the first
line in the code to point
2009 Jul 27
2
skip plot/blank plot on purpose (multi-plot question)
Hi,
   Say that I've got a function that has the following code in it:
X11(width=10, height=10)
layout(rbind(c(1,1,1,2,2,2), c(3,4,5,6,7,8), c(9,10,11,12,13,14)),
height=c(3,1,1))
layout.show(14)
Sometimes when I call this function it will turn out by design that
one or more of the data sets that I use to create the plots in
positions 3-14 are empty. As there is a day of the week
2009 Jul 02
2
Plot two graphs with different ranges in one
Hi, I'm trying to plot two variables in one graph. One ranges between 0 and
1, while the other ranges between 50 and 500. Can I plot them in one graph
with similar scale?
 Thanks
  Harry
	[[alternative HTML version deleted]]
2012 Feb 14
1
cumsum function to determine plankton phenology
Apologies for the empty email earlier!
I have species abundance data sampled at a weekly frequency or
sometimes monthly depending on the year.
The goal is to identify the dates in an annual cycle in which the
cumulative abundance of a species reaches some threshold.
Here's an example of the data for 1 species over an annual period:
"mc_pheno" is the object created from this data: