Displaying 14 results from an estimated 14 matches for "wapply".
Did you mean:
apply
2005 Jun 17
0
wapply from gplots -- How do I get a local estimate of variance?
Dear list,
I am trying to plot the local variance in a moving window on a
dataset. The function that I am trying to use for this is wapply from
gtools.
However, from the lattice panel function code:
<snip>
cat(x)
cat(y)
wapply(x,y,method="range",width=1/10,fun=sd,na.rm=TRUE) -> outvar
</snip>
I get:
<snip>
109 109 109 109 109 109 116 116 116 116 119 119 123 123 123 123 127
127 133 133 133 133 13...
2001 Oct 02
4
plot of Bernoulli data
I have some Bernoulli data something like this:
x<-sort(runif(100,1,20))
p<-pnorm(x,10,3)
y<-as.numeric(runif(x)<p)
plot(x,y)
lines(x,p)
This plot is not very satisfactory because the ogive does not visually
fit the (0,1) points very well, and also because the points tend to fall
on top of one another. The second problem can be eliminated by adding
vertical jitter. However I was
2001 Oct 28
2
extract element, row, etc from general array structure
...d N=2, can we write a function
that will "know" to return A[,,2], and not mistake that
for A[2] or A[,2]? Bonus question - can such a function
be written without relying purely on an arbitrarily high
number of "if" statements?
Long version:
I've been using Greg Warnes' wapply function (thanks Greg!),
and modifying it to suit my own ends. wapply() takes a vector,
and repeatedly applies a function FUNC (decided at run-time) to
windows of the data. The modification I've made is to generalize
the return structures - if a scalar is returned by FUNC, wapply
returns a v...
2003 Jan 31
0
Version 0.8.0 of the gregmisc package is now available
...t.
- Enabled fit.contrast for lme object now that Doug Bates has provided
the necessary support for contrasts in the nlme package. (Thanks Doug!)
Requires the newly released nlme 3.1-37.
- 'make.contrasts' has been augmented to check for too many submitted
contrast rows
- Updated wapply.R to allow specification of evaluation points when
method is 'width' or 'range' using the 'pts' argument.
- Updated wapply.Rd to add 'pts' argument
- Fixed typos, spelling errors, grammatical errors and lack of clarity
in various help pages.
Description of the...
2008 Jul 11
2
Problems with Package Installation.
...html latex example
sinkplot text html latex example
smartlegend text html latex example
space text html latex example
textplot text html latex example
wapply text html latex example
** building package indices ...
* DONE (gplots)
The downloaded packages are in
/tmp/Rtmp5NZLyb/downloaded_packages
> ?plotCI
No documentation for 'plotCI' in specified packages and libraries:
you could try 'help.search(&quo...
2002 Sep 23
3
New version of gregmisc package
...der Reorder the Levels of a Factor
running Apply a Function Over Adjacent Subsets of a
Vector
space Space points in an x-y plot so they don't
overlap.
undocumented Undocumented functions
wapply Compute the Value of a Function Over a Local
Region Of An X-Y Plot
Changelog Since 0.5.5
=====================
- Added barplot2():
barplot2 is an enhanced version of barplot that can add confidence
intervals for each bar, color plot region separ...
2002 Sep 23
3
New version of gregmisc package
...der Reorder the Levels of a Factor
running Apply a Function Over Adjacent Subsets of a
Vector
space Space points in an x-y plot so they don't
overlap.
undocumented Undocumented functions
wapply Compute the Value of a Function Over a Local
Region Of An X-Y Plot
Changelog Since 0.5.5
=====================
- Added barplot2():
barplot2 is an enhanced version of barplot that can add confidence
intervals for each bar, color plot region separ...
2002 Oct 31
1
Re: gregmisc version 0.7.3 now available
...der Reorder the Levels of a Factor
running Apply a Function Over Adjacent Subsets of a
Vector
space Space points in an x-y plot so they don't
overlap.
undocumented Undocumented functions
wapply Compute the Value of a Function Over a Local
LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclo...
2007 Nov 02
0
gplots 2.5.0
...ding several
enhanced versions of base R functions.
Provided functions include:
balloonplot, bandplot, barplot2, boxplot.n, colorpanel, heatmap.2,
hist2d, lowess, ooplot, overplot, plot.lm2, plotCI, plotmeans,
qqnorm.aov, residplot, rich.color, sinkplot, smartlegend, space,
textplot, wapply
Changes in 2.5.0
-----------------------
New Features:
- textplot() now converts tab characters to spaces before processing to
avoid problems with computing height and width of text that includes
tabs.
- Add col2rgb() function to convert color names to rgb hex codes
Bug Fixes:
- Correc...
2007 Nov 02
0
gplots 2.5.0
...ding several
enhanced versions of base R functions.
Provided functions include:
balloonplot, bandplot, barplot2, boxplot.n, colorpanel, heatmap.2,
hist2d, lowess, ooplot, overplot, plot.lm2, plotCI, plotmeans,
qqnorm.aov, residplot, rich.color, sinkplot, smartlegend, space,
textplot, wapply
Changes in 2.5.0
-----------------------
New Features:
- textplot() now converts tab characters to spaces before processing to
avoid problems with computing height and width of text that includes
tabs.
- Add col2rgb() function to convert color names to rgb hex codes
Bug Fixes:
- Correc...
2003 Apr 16
2
Local parameter calculation
Dear all,
I am a newbie in R. I encounter a problem as follows.
I have 2 vectors X and Y that have a equal length of several thousand. I see
Y as the function of X. Both of them are random. X is not arrranged in any
order. Of course, I do plot(X,Y). Now, I want to use a sliding narrow window
to run over each X, then calculate the variances within that window.
Anyone knows easy way in R to do
2005 Dec 01
4
values in between
Hey there
I have two vectors:
y<- c(0.4, 0.0, 0.2, -0.2, -0.6, 0.2, 0.0, 0.0, 0.4, 0.4, 0.2)
In the vector y, I want to access (in the order given) all of the values in
between each of the specific values of given.
I understand subsetting with y[i], but how do I get to ssomewhere in
between -0.6 and 0.2?
Thanks
Eric Jennings
matheric at myuw.net
2007 Oct 01
3
"continuous" boxplot?
I have two vectors x and y, which I would like to plot against each
other. I am also displaying other data in this plot. However, I have
about 1 million points to plot, and just plotting them x againt y is
not very informative. What I'd like to do is to do sort of a
continuous box plot.
My x values goes from -1 to 1 and my y values from 0 to 1, so I?d like
to plot the median and quantiles,
2004 Jul 26
5
binning a vector
Hello,
I was wondering wether there's a function in R that takes two vectors (of same length) as input and computes mean values for bins (intervals) or even a sliding window over these vectros.
I've several x/y data set (input/response) that I'd like plot together. Say the x-data for one data set goes from -5 to 14 with 12,000 values, then I'd like to bin the x-vector in steps of