Displaying 20 results from an estimated 10000 matches similar to: "How to store histogram plots"
2009 Mar 25
5
histogram plots with many different samples
Dear R users,
I would like to draw some histograms as seen in the page whose address I
wrote below. I searched through the web a lot and I found a page which
describes how I can do it for older versions of R. For newer versions they
recommend to install the package R.basics in R.clusters but this does not
exist. The address of the web page is
http://www1.maths.lth.se/help/R/plot.histogram/
2017 Jul 09
2
Histogram plots in Lattice with spatialgrid dataframe data
Hi all,
I can not seem to get what I want using the Lattice package to generate an
array of histograms of
spatialgrid dataframe data.
I can use the sp package and spplot to generate an array of maps that
display an array of spatialgrid dataframe data -- that's good. I have:
2017 Jul 09
0
Histogram plots in Lattice with spatialgrid dataframe data
Hello all,
After more digging I was able to find out how to do this. The answer came
from an example here:
https://stackoverflow.com/questions/3541713/how-to-plot-two-histograms-together-in-r
yr_1997<-data.frame(bias=ann_bias$bias1997)
yr_1998<-data.frame(bias=ann_bias$bias1998)
yr_1999<-data.frame(bias=ann_bias$bias1999)
yr_2000<-data.frame(bias=ann_bias$bias2000)
2017 Jul 10
1
Histogram plots in Lattice with spatialgrid dataframe data
Glad you found an answer, though it looks more self-educational than efficient (see suggestions below). In the future, follow the recommendations of the Posting Guide: use plain text, and provide a reproducible example. Some elaborations on what "reproducible" means are [1][2][3]. One issue here was that you did not include sample data to work with (I have assumed below that ann_bias has
2011 May 05
4
Insert values to histogram
I'm trying to add the exact value on top of each column of an Histogram, i
have been trying with the text function but it doesn't work.
The problem is that the program it self decides the exact value to give to
each column, and ther is not like in a bar-plot that I know exactly which
values are been plotting.
If anyone have any new idea on how to do this
Thanks
Matias
--
View this
2009 Feb 03
2
Lattice histogram with vertical lines
I would like to add some vertical lines to a lattice plot of histograms.
What I am after is a lattice version of abline(v = 1234). The lattice
histogram plot is just:
histogram( ~ LTSE | approach, data = arrivals)
Can anyone point me in the right direction for this?
David Scott
_________________________________________________________________
David Scott Department of Statistics
The
2008 Oct 08
2
Histogram colours in lattice.
I am trying to do a histogram lattice plot and I would like the
histogram to be filled with a different colour in each panel.
Note: I want every bar in each histogram to be the same colour,
but that there should be different colours *between* histograms.
Can't seem to get this to work. I thought that something like
the following would be a goer:
set.seed(42)
X <- rnorm(200)
A <-
2002 Sep 06
3
Histogram Ranking
Hello,
This is not exactly an R question, but I suspect that there is an R
procedure that does what I am calling (for lack of a better name)
"histogram ranking".
I'm trying to evaluate a set of regression features by segregating by
target class and comparing the feature histograms. My idea is that if the
histograms are the same for two different classes then there is no
2004 Oct 01
3
controlling colour in Trellis histogram
Hello. I am sorry for posting a (seemingly) simple question, but I have
just spent 2 hours trying to find the answer, without success. I want
to make a histogram with conditioning on a factor, using Trellis
graphics. However, I do not want any colours (only black and white)
either in the histograms or in the strip. There must be some simple
argument but I can’t find it. Here is my code so
2006 Jun 08
3
Re-binning histogram data
Hi,
Short Version:
Is there a function to re-bin a histogram to new, broader bins?
Long version: I'm trying to create a histogram, however my input-data is
itself in the form of a fine-grained histogram, i.e. numbers of counts
in regular one-second bins. I want to produce a histogram of, say,
10-minute bins (though possibly irregular bins also).
I suppose I could re-create a data set as
2005 Feb 09
2
Histogram Bar Spacing or Border Width
Is there any way to control the spacing between bars in a histogram, or
change the border width (I'm assuming the hist() function, though
alternatives are welcome)? I'm interested in changing the visual spacing
between columns in a plotted histogram.
The general effect I'm looking for can be accomplished in barplots using
the "width=" parameter, but I have not been able
2006 Dec 14
2
rotated histogram
I would like to make a scatterplot, with a histogram of the x and y
variables above and to the right . I can use layout to set up the areas,
and hist(x,y) works fine for the upper histogram. However, I need a
rotated histogram on the right, and I don't know how to do this. I've
seen a solution with a bar plot on the right, but I'd like to use a
histogram. Do you know how I can do
2003 Jul 03
4
Generating a vector for breaks in a histogram
Hi
I have two lots of numbers which I would like to histogram using the hist() function. For comparative reasons, I want them to be on the same scale, which I can use the xlim and ylim options to achieve.
However, having them on the same scale is meaningless unless they have the same "breaks". Consulting the documentation, there are 4 ways of defining the number of breaks, only one
2010 Sep 16
3
Help with customizing a histogram figure
Hi all,
Please consider the following code:
require(plotrix)
l <- list(rnorm(50),rnorm(50,sd=2),rnorm(50,mean=3))
multhist(l)
I have two things I need help with:
(1) In the output, there are empty spaces on the x-axis. How would I eliminate
these spaces? I want a nice, smooth, empty-spaceless x-axis.
(2) How could I add tracing lines to each histogram? I am undoubtedly using the
wrong
2010 Apr 23
1
help in conditional histogram
Dear Dr. Sarkar,
When I try to run the codes, I found the following problem:
> h<- sample(1:14, 319, rep=T)
> c<- sample(1:14, 608, rep=T)
> n<- sample(1:14, 1140, rep=T)
> vt<-c(h, c, n)
> ta<-rep(c("h", "c", "n"), c(319, 608, 1140))
>
> to<-data.frame(vt,ta)
> library(lattice)
Attaching package: 'lattice'
2010 Apr 07
2
label the bars by the percentage values in the conditional histogram?
HI, Dear R-community:
I have the following codes to plot the conditional histogram, is a way to
label the bars by the percentage values in the conditional histogram?
h<- sample(1:14, 319, rep=T)
c<- sample(1:14, 608, rep=T)
n<- sample(1:14, 1140, rep=T)
vt<-c(h, c, n)
ta<-rep(c("h", "c", "n"), c(319, 608, 1140))
to<-data.frame(vt,ta)
2009 Dec 27
3
help: creating a unified histogram
Good evening,
I would like to put the histograms of several matrices on the same graph,
together on a unified histogram (instead of having one bar per value on the
x-axis, have multiple bars: one representing each matrix, with different
colored bars for example to distinguish between the matrices). I couldn't
find a function doing that involving "hist", "plot" nor other
2009 Aug 19
1
histogram scaling
Hi,
I'm drawing two histograms in the same plot.However, my point of comparison
is the difference in their x coordinates.But my problem is one histogram is
much taller than the other.How can I get them both to the same height?
--
Rajesh.J
[[alternative HTML version deleted]]
2012 Aug 06
4
Overlay Histogram
Dear all,
For two sets of random variables, say, x <- rnorm(1000, 10, 10) and y
<- rnorm(1000. 3, 20).
Is there any way to overlay the histograms (and density curves) of x and y
on the plot of y vs. x?
The histogram of x is on the x axis and that of y is on the y axis.
The density curve here is to approximate the shape of the distribution
and does not have to have area 1.
Thank you
2005 Jun 13
3
Lattice: Combining xyplot and histogram
Dear all,
I am trying to create a lattice plot which consists of 1 xyplot and 2
histograms (each for x and y).
My first try was like this:
x<-rnorm(1000)
y<-rnorm(1000)
xy <- xyplot(y~x)
hist.x <- histogram(x)
hist.y <- histogram(y)
print(xy, position=c(0, 0.2, 1, 1), more=TRUE)
print(hist.x, position=c(0, 0, 1, 0.33),more=T)
print(hist.y, position=c(0.8, 0, 1, 1))
Ok, this is