Displaying 20 results from an estimated 4000 matches similar to: "Lattice: arbitrary abline in multiple histograms"
2005 Aug 24
1
histogram method for S4 class.
Hi,
I'm trying to develop an histogram method for a class called "FLQuant"
which is used by the package FLCore (http://flr-project.org). FLQuant is
an extension to "array". There is an as.data.frame method that coerces
flquant into a data.frame suitable for lattice plotting. The problem is
that when I coerce the object and plot it after it works but if the
method is
2005 Aug 24
1
histogram method for S4 class.
Hi,
I'm trying to develop an histogram method for a class called "FLQuant"
which is used by the package FLCore (http://flr-project.org). FLQuant is
an extension to "array". There is an as.data.frame method that coerces
flquant into a data.frame suitable for lattice plotting. The problem is
that when I coerce the object and plot it after it works but if the
method is
2008 May 12
2
Cumulative lattice histograms
An embedded and charset-unspecified text was scrubbed...
Name: inte tillg?nglig
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20080512/9533b31f/attachment.pl>
2010 Sep 13
4
lattice: Set x-axis in italics only
Dear list, I making some box-and-whisker plots in R with vertebrate
data. The x axis are species names that must be in italics. I tried
with the "axis" function but no luck, and it seems that affects both
axes.
Any tip?
Thanks a lot in Advance.
Alej
2010 Oct 11
1
MATLAB vrs. R
I need to find the area under a trapezoid for a research-related project. I was able to find the area under the trapezoid in MATLAB using the code:
function [int] = myquadrature(f,a,b)
% user-defined quadrature function
% integrate data f from x=a to x=b assuming f is equally spaced over the interval
% use type
% determine number of data points
npts = prod(size(f));
nint = npts -1; %number of
2013 Jan 26
1
[LLVMdev] MCJIT/interpreter and iostream
As of LLVM 3.2, is it possible to use iostream with the MCJIT or interpreter execution engines? I'm getting some errors...
Each of these commands correctly prints "hello":
echo -e '#include <stdio.h>\nint main(){ printf("hello"); }' | clang -cc1 -emit-llvm-bc -x c++ | lli -use-mcjit
echo -e '#include <iostream>\nint main(){ std::cout <<
2008 May 15
1
lattice histogram problem with integers values and nint
been puzzling over this for a day.
Summary
integer variable to use with histogram, 170,000 rows. Value is day of
year. Hist works, lattice histogram with nint does not work (spurious
spikes in display), lattice histogram using breaks=c(0:365) works
fine. Spike values appear to be sum of two adjacent bins. Want to
know if this is a familiar problem, and what the recommended
work-around is.
2006 Mar 13
2
Error Message from Variogram.lme Example
When I try to run the example from Variogram with an lme object, I get
an error (although summary works):
R : Copyright 2005, The R Foundation for Statistical Computing
Version 2.2.1 (2005-12-20 r36812)
ISBN 3-900051-07-0
...
> fm1 <- lme(weight ~ Time * Diet, BodyWeight, ~ Time | Rat)
Error: couldn't find function "lme"
> Variogram(fm1, form = ~ Time | Rat, nint =
2017 Aug 15
1
Lattice Histogram Scaling
My apologies, the data can now be found at:
url <- "http://www.econ.uiuc.edu/~roger/research/ebayes/velo.d"
x <- scan(url,skip = 1)
If I could get each of the histograms to mimic what is produced by
hist(x, 100, freq = FALSE)
I?ve experimented with xlim, ylim, without success so far...
url: www.econ.uiuc.edu/~roger Roger Koenker
email rkoenker at uiuc.edu
2003 Jan 25
7
Plotting coloured histograms...
Hi, I am having some trouble trying to plot a histogram in more than one
colour. What I want to do is, plot two vectors in the same histogram, but
with different colours, for instance:
> x <- rnorm(1000,20,4);
> y <- rnorm(1000,10,2);
Then I'd like to have x and y ploted on the same hist (I can do that
already doing w <- c(x,y) then hist(w)) but the bars
2017 Aug 14
1
Lattice Histogram Scaling
I am trying to do some comparisons of density estimators using lattice.
The code below attempts to plot the same histogram in each panel and
then overplots a kernel estimate with different bandwidths. Finding
packet.number() was a bit arduous, but seems to do what I want. My
concern now is that close examination of the 4 histograms reveals that
they are different even though they use the same
2009 Apr 28
2
Dropping 'empty' panels from lattice
I have 8 cofactors possibly affecting one and only one variable.
I make conditional histograms:
<-pdf(file="tst3.pdf",paper="special",width=36,height=36)
<-histogram(~Oversized|dat$c1*dat$c2*dat$c5*dat$c6*dat$c7*dat$c8*dat$c9*dat$c10,nint=21,layout=c(32,8),data=dat,type="count")
<-dev.off()
This works (compliments to R developers!) but it does generate a
2002 Apr 01
1
An introduction to R (PR#1426)
(I sent this earlier, but it seems not to have come through, due to
problems witkh my system)
The following command from appendix A, "a sample session", isnt correct:
contour(x, y, fa, nint=15)
when used R protests:
Warning message:
parameter "nint" couldn't be set in high-level plot() function
it should probably be nlevels, as used a few lines before.
This is
2010 Nov 10
1
plotting histograms/density plots in a triangular layout?
Hi!
I have a set of 49 pairwise comparisons that I have done. From this I
would like to plot either histograms or the density plots of the values
I get. Now, I can plot one histogram per comparison, but I have problems
getting the output I want. When plotting like I normally would do:
histogram(~percid | orgA_orgB, data = alldata)
I get the histograms next to eachother in a boxlike shape.
2008 Feb 01
1
Cannot save histogram picture when run from script
Hi,
I am faced with a strange problem. My picture file is empty when the
following statements were run from R script. But the picture file shows up
correctly, when the commands are individually run from Rgui.
png(file="histogram_correlation.png", bg = "white")
require(stats)
histogram( ~ height | voice.part, data = singer, nint = 17,
endpoints = c(59.5, 76.5),
2008 Mar 27
1
histogram for integer data
hi,
library(lattice)
x<-c(-1,-1,-1,0,0,0,0,1,1,2)
rng<-range(x)
histogram(x,endpoints=c(rng[1]-0.5,rng[2]+0.5),nint=length(unique(x)))
instead of contiguous bins, i'd like spaces between them to indicate
that the data is discrete, or even better, line segments positioned at
integer values.
i know how to do this with plot, but i need it with histogram, so that
in more complicated
2005 Aug 08
2
Groups in histograms?
Dear list,
I would like to create histograms for up to three groups, with
distincive colour/pattern, in a trellis panel. However, I have not
been able to find a way to do this. histogram does not seem to have a
group argument.
Please help.
/Fredrik
2010 Oct 08
1
Trapezoid Rule
Dear R Users,
I've never used R before and my professor has asked us to do some
pretty intense programming (or it's intense to me at least). Here is
the question: Modify the function myquadrature inside the script so
that it returns the quadrature of descrete data using the trapezoidal
rule. Modify the call to the function at the bottom of the script so
that is uses your modifies
2004 Oct 19
3
densityplot and histogram
Is there any function like par(new=T) for lattice. I want to plot a
histogram in percentages on the right hand side and also superimpose the
densityplot with its density scale on the lhs. so far I am only able to do
this
histogram( temp[,2]~ temp[,1],nint=100,type="desnity",
xlab = "Population Size",
panel = function(x, ...) {
2013 Dec 10
4
[LLVMdev] lit: deprecating trailing \ in RUN lines
On 10/12/2013 19:47, Jim Grosbach wrote:
>
> On Dec 10, 2013, at 11:26 AM, Alp Toker <alp at nuanti.com
> <mailto:alp at nuanti.com>> wrote:
>
>>
>> On 10/12/2013 18:03, Jim Grosbach wrote:
>>>> That causes dissonance between what the compiler sees and what
>>>> lit.py sees for no particularly good reason. One of the nice