similar to: questions about histogram

Displaying 20 results from an estimated 10000 matches similar to: "questions about histogram"

2010 Jan 29
1
Barplot/Histogram (lattice)
Dear Rxperts.. what settings in barplot and histogram do I use, to show bars in an monotonously increasing or decreasing order of the frequency of a categorical variable? an example is provided below.. histogram(~factor(sample(letters,200,rep=T))) I was able to get it in 3 - 4 steps.. l a1 <- sample(letter,200,rep=T) a2 <- table(a1) barplot(a2); barplot(sort(a2)) # all variables are not
2003 Nov 18
5
Histogram
Hi, I have what should be a simple question. I would like to generate a histogram of x <- c("a","b","c","b","c","c") where the first bar to be labeled 'c' with height 3, second bar to be labeled 'b' with height 2 and third bar to be labeled 'a' with height 1. This should be an easy task in R but I think I
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
2010 May 07
2
smooth line overlap with histogram
Hi r-users,   I would like to overlap a smooth line on the histogram.  I tried using spline but it does not work. sq     <- seq(0,900,by=50) sq.50  <- as.character(sq) datobs <- sum_pos ## first, plot histogram histo <- hist(datobs,breaks=sq,freq=F) ## extract counts from histogram and calculate the probability in ## each specified interval. Also check the length of the interval is
2011 Nov 04
3
barplot as histogram
Hello: I'm dealing with an issue currently that I'm not sure the best way to approach. I've got a very large (10G+) dataset that I'm trying to create a histogram for. I don't seem to be able to use hist directly as I can not create an R vector of size greater than 2.2G. I considered condensing the data previous to loading it into R and just plotting the frequencies as a
2011 Jun 08
3
Histogram
Hello , I am trying to create a histogram in order to compare between two groups and would like it to be similar to the figure attached. How can I generate this using R ? Thank you, Nandini http://r.789695.n4.nabble.com/file/n3582448/5634-15977-1-PB.gif -- View this message in context: http://r.789695.n4.nabble.com/Histogram-tp3582448p3582448.html Sent from the R help mailing list archive at
2005 Apr 20
6
Histogram
Dear everybody! I am analysing data from an enquette. The answers are either A or B. How can I draw a histogram without transforming the data from characters to numbers? If the data are saved in a list M, hist(M[,1]) returns: Error in hist.default(M[, 1]) : `x' must be numeric Execution halted Thank you in advance!
2006 Sep 07
2
Axes of a histogram
Hello everyone, I would be glad if you could help out an R-beginner here... I have a vector of categorial data like this > v <- c(1, 1, 2, 2, 2, 3, 3, 4, 4, 4) When I do > hist(v) I get the x-axis of the histogram with floating point labels: 1.0, 1.5, 2.0, etc. Is it possible to tell R that the data consists of categories, i.e. that I only want the category names (1, 2, 3, 4) on my
2009 Jan 23
4
Histogram for grouped data in R
I have grouped data in this format Size -- Count 0-10 -- 15 10-20 -- 25 20-50 -- 10 50-100 -- 5 I've been trying to find a way to set this up with the proper histogram heights, but can't seem to figure it out. So any help would be much appreciated! -- View this message in context: http://www.nabble.com/Histogram-for-grouped-data-in-R-tp21624806p21624806.html Sent from the R help
2012 Apr 03
2
Histogram from a table in R
Hi all, I am new in R. I am trying to make an histogram but I can't figure it out. I have .cvs table with a lot of data that look like this: I already have the frequency of each interval (Counts). Interval Counts 00:19 0 10:19 3117 20:29 4500 30:39 2330....... I want to make the histogram with that. At the y axis I want to have the Counts and at x axis I
2006 Sep 06
4
histogram in the background?
I intend to draw a plot of y against x. In the background of this graph I wish to creat a histogram of the horizontal variable x. Does any expert know how to produce such a plot? [[alternative HTML version deleted]]
2009 Jan 08
2
how to plot histogram plot and fitted distributions on the same graph
Dear: I am trying to plot the histogram graph for my observed data. Then plot fitted distribution on the same graph of histogram plot in R. 1. histogram plot y. 2. based on "1", plotting y1 v. x; 3. based on "1", plotting y2 v. x; 4. based on "1", plotting y3 v. x; All of these four plots must be on the same graph. However, I found the difficulty is
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 Nov 29
1
Making the lines thicker in histogram
I'm using a histogram and want to overlay this onto a barplot. I need the histogram lines to be thicker in order for it to stand out more on top of the barplot. Is there a command in order to do this? Thanks in advance. -- View this message in context: http://r.789695.n4.nabble.com/Making-the-lines-thicker-in-histogram-tp4119639p4119639.html Sent from the R help mailing list archive at
2000 Apr 05
1
Histogram with plot() function
Hi I'm trying to make an histogram using the plot() function. Mainly I do so because I need to make the histogram of the values in the vector and not of the "counts" or "probabilities" of it. The main problem is that when using the flags type="h", lwd=10 I get a histogram with rounded bars ... and I didn't found out how I can change this. All help will be
2009 Aug 20
2
Histogram problem
I'm trying to create a histogram from the following code, but my data keeps adding the Num vector and plotting that. My data in the CSV file is just one vector. Does anyone know why? Thanks Conrad SPXdf = data.frame(read.csv(file = "SPX.csv", header = TRUE, sep = ",", dec = ".", fill = TRUE)) Max = max(SPXdf[,2]) Min = min(SPXdf[,2]) Count =
2004 Feb 04
5
Newbie question: histogram
Hello, how do you create a histogram with a data frame? year snow.cover 1970 6.5 1971 12.0 1972 14.9 1973 10.0 1974 10.7 1975 7.9 ... mydata=data.frame(year=c(1970,...),snow.cover=c(6.5,...)) hist(mydata) does not work. Many thanks. PR
2001 Nov 12
3
histogram question
hist(rbinom(1000,10,0.5),col=2,xlim=c(0,10),ylim=c(0,300)) gives a histogram with "touching bars" hist(rbinom(100000,10,0.5),col=2,xlim=c(0,10),ylim=c(0,30000)) gives a histogram with space between the bars. is there a way to control the space betweent he bars easily? -- Erich Neuwirth, Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at
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 Jan 27
1
3-axis Barplots (plus qplot like staked histogram capability)
Searched my R reference docs*, and the Rseek, but evidently I've overlooked this capabilty.    Is it possible to produce a 3d Barplot using R?   For example would like to have a three axis bar plot - \ x-axis = location(discrete), y-axis = data value, z-axis = frequency of value occurance (of location and value)   Would also if could also do something like what "qplot" allows,