Displaying 20 results from an estimated 10000 matches similar to: "Logrithmic histogram?"
2008 May 19
2
Histograms without bars
Hello
I'd like to plot a histogram of some data composed of real numbers. The
bin width I'm using is ~ 0.01, which results in high values in the y
axis, so that the area under each bar corresponds to the probability of
the data in that range.
Is is possible to plot points whose y coordinate correspond to that
probability, instead of plotting the histogram bars? In other words,
instead of
2009 Jan 03
2
R Stacked Histogram
I've seen this asked, but never fully answered.
Is it possible to plot stacked histograms in R?
I have four data sets that I would like to show combined vertically in histogram format.
Is this possible?
Thank you for any feedback you can provide.
P.S. I know I can show the four sets side by side, but I want to combine them, but still uniquely identify each. Thanks again.
2010 Nov 11
3
overlap histogram and density
Hi,
Does anybody encounter the same problem when we overlap histogram and density
that the density line seem to shift to the right a little bit?
If you do have the same problem, what should we do to correct that?
Thank you.
par(mar=c(4,4,2,1.2),oma=c(0,0,0,0))
hist(datobs,prob=TRUE, main ="Volume of a catchment from four
2009 Mar 02
3
ways to put multiple graphs on single page (using ggplot2)
Hi, Here are three plots:
library(ggplot2)
data(diamonds)
randind <- sample(nrow(diamonds),1000,replace=FALSE)
dsmall <- diamonds[randind,]
qplot(carat, data=dsmall, geom="histogram",binwidth=1)
qplot(carat, data=dsmall, geom="histogram",binwidth=.1)
qplot(carat, data=dsmall, geom="histogram",binwidth=.01)
What are ways to put these three plots on a single
2011 Jan 14
2
bug in qplot (library ggplot2)
Hello,
this following code give a nice png:
/library(ggplot2)
i <- 1
png(file=paste('test ',i,'.png',sep=''))
qplot(carat, data=diamonds,
fill=color,geom='histogram')+scale_y_continuous(i)
dev.off()
/
I would like to get more files, but the following code doesn't make any
file:
/library(ggplot2)
for (i in 1:2) {
png(file=paste('test
2007 Mar 08
2
Using logarithmic y-axis (density) in a histogram
Hi,
I am searching for a possibility to display a logarithimic y-axis in a histogram. With plot that's easy (e.g.
plot(1:10, log="y")
but for histograms this does not work the same way: I tried
hist(rnorm(1000), freq=FALSE, seq(-4, 4, .5), ylim=c(0.001, 0.5), log="y")
Which gives the expected histogram but also warnings for my log="y" command
2008 Feb 11
2
Questions about histograms
Hello
I'm doing some experiments with the various histogram functions and I
have a two questions about the "prob" option and binning.
First, here's a simple plot of my data using the default hist()
function:
> hist(data[,1], prob = TRUE, xlim = c(0, 35))
http://go.sneakymustard.com/tmp/hist.jpg
My first question is regarding the resulting plot from hist.scott() and
2010 May 21
2
multiple qplot histograms in one plot
Hi,
I wish to plot multiple histograms(representing different data so different
range along xaxis but y axis is the same) horizontally in ggplot2. I'd like
it to look like facets. Is this possible?
--
Rajesh.J
[[alternative HTML version deleted]]
2012 Mar 13
1
multi-histogram plotting
I have a vector x:
table(x)
2 3 4 5 6 7 8 9 10 11 12 13 14
45547 11835 4692 2241 1386 820 593 425 298 239 176 158 115
15 16 17 18 19 20 21 22 23 24 25 26 27
94 88 76 67 47 46 40 20 30 22 20 33 14
28 29 30 31 32 33 34 35 36
2009 Apr 22
1
converting histogram to barchart
Hi list,
After a lot of tweaking i have managed to create a histogram with an
overlaying density plot. The histogram shows a sample of birth weights
of babies and the density plot shows birth weights from a much larger
reference populaton. My data is divided in 0.1 Kg bins so in the code
below binweigh=0.1.
The trouble with the current graph is that it is not very clear since
the density plot
2011 Apr 22
1
histogram of dates
I can't seem to get a histogram of dates:
tmt910% R --vanilla
R version 2.13.0 (2011-04-13)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
...
> temp <- as.Date(1:200, origin="1970/01/01")
> range(temp)
[1] "1970-01-02" "1970-07-20"
> hist(temp)
Error in .Internal(inherits(x, what, which)) : 'x' is missing
2012 Jul 05
3
Histogram
I have a column of 1000 datapoints from the normal distribution with mean 2
and variance 4. How can I get a histogram of these observations with 20
bins with each bin having 50 observations?
--
Thanks,
Jim.
[[alternative HTML version deleted]]
2010 Jan 13
3
Ask for histogram
Hi,
I use a vector of data to draw the histogram, but it is different from the
graph by SAS. Can you check it for me please?
b is a column vector of 4332
hist(b,probability=T,breaks=30,col='lightblue',ylim=c(0,1))
rug(b)
When I used rug, I find the records are smaller than 4332. I don't know
where I did wrong.
Thanks.
--
Yi Du
[[alternative HTML version deleted]]
2009 Apr 07
2
Frequency table to histogram
I have read a frequency table in to R called "temp." I now want to create a histogram table from it, but I obviously first have to expand the data - to the sample size of 100. I want to use the command rep(), but I'm not sure how to go about it..I tried using the code:
temp1<-rep(temp$Chest,100)
hist(temp1)
But this creates a v. odd histogram so I know it must be wrong!
2009 Sep 06
5
ggplot2::qplot() -- arbitary transformations of coordinate system?
Hi,
Does anyone know how to do a coord_trans() in which the y-axis is
tranformed into (for example) -1000/y?
Thanks,
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS: P.O.Box 400400 Charlottesville, VA 22904-4400
Parcels: Room 102 Gilmer Hall
McCormick Road Charlottesville, VA 22903
Office: B011
2007 Sep 17
3
Histogram with colors
Is there a simple way to plot a histogram with colors?
For example, suppose I generate random points in the
N(2,1) distribution:
x <- rnorm(100000, mean = 2, sd = 1)
Now I would like to plot the histogram:
hist(x)
but I would like to show the bars with x < 0 in red, and the
bars with x >= 0 in lightgreen. Is there any simple way to
do it?
I think I can do it in two steps:
2011 Apr 19
2
cut & histogram
Dear Rxperts,
Below is a small sample of values (cut short due to space considerations
while posting).. I was wondering if it is possible to construct boundaries
(or intervals) based on the distribution of points. Is it anything similar
to boundary detection of distributions?
x1 <-
2004 Jul 20
1
Histogram without common borders
Is it possible to produce a histogram directly using the hist()
function with the common borders removed?
It can be done by plotting the histogram object using type 's'teps.
my.hist <- hist(x,plot=FALSE)
plot(my.hist$breaks,c(0,my.hist$counts),type='s')
I would appreciate help
Ross Darnell
--
University of Queensland, Brisbane QLD 4067 AUSTRALIA
Email: <r.darnell at
2011 Jun 09
1
histogram - density on y axis and restriction to interval [0, 1]
Hello,
To indicate probability densities instead of counts on a histogram, I
specify freq = FALSE.
However, I expect that summing all top y coordinates over all the
intervals of the histogram will provide 1.
1)
v <- c(0.2885, 0.2988, 0.3139, 0.2615, 0.3179, 0.3163, 0.2583, 0.3052,
0.2527, 0.3147, 0.3235, 0.2408, 0.2480, 0.3108, 0.3577, 0.2829, 0.2694,
0.3275, 0.3314, 0.2639, 0.3076,
2009 May 07
1
I updated/reinstalled ggplot2 and the trouble started...
Hi Ian,
Per your suggestion, I reinstalled R 2.9.0, then
I reinstalled ggplot2 on top. The problem persists.
Here's the what happens after the installation:
> qplot (carat, price, data = diamonds, alpha = I(1/10))
Warning message:
In grid.Call.graphics("L_points", x$x, x$y, x$pch, x$size) :
semi-transparency is not supported on this device: reported only once per