similar to: Histogram

Displaying 20 results from an estimated 10000 matches similar to: "Histogram"

2003 Dec 02
8
Vector Assignments
Hi, I have simple R question. I have a vector x that contains real numbers. I would like to create another vector col that is the same length of x such that: if x[i] < 250 then col[i] = "red" else if x[i] < 500 then col[i] = "blue" else if x[i] < 750 then col[i] = "green" else col[i] = "black" for all i I am convinced that there is probably a
2003 Nov 17
1
\preformatted and $
Hi, I have been developing a package in R and have been working on documentation. I have a \details function that contains the following: \details{ some text \preformatted{ [my-section] user = apv host = 127.0.0.1 } } When I run R CMD check I get an error while checking the manual. If I remove: \preformatted{ [my-section] user = apv host = 127.0.0.1 } and replace it with [my-section]
2003 Nov 20
1
Compile Packages under Windows and CHM
Hi, I have been developing a small package. It install under RedHat Linux 9.0 without a problem. However, I have a small problem under Windows XP. I am using R-1.8.0 on both systems and HTML Help Workshop 4.74.8702.0 on Windows XP. I created the package under Linux. When I try to install the package created under Linux in Windows XP using c:\rtest> rcmd install rtest I get the following
2004 Mar 01
1
RODBC
Hi, I have installed RODBC on FreeBSD 4.9 and I am using the PostgreSQL ODBC Driver that is distributed with unixODBC 2.2.8. I can access ODBC Data Sources from Open Office so I think that everything is properly installed. When I installed RODBC I had to set export LIBS=-L/usr/local/lib so that R could locate my ODBC manager. I do not have any problems opening database connections and qurey
2004 Apr 30
3
searching a vector
Hi, I have a integer vector x that contains a unique set of numbers: x <- c(1,2,4,6,8,10,12) Is there a simple test I can use to determine if an integer such as 6 is contained in x ? Thanks in advance for any help, Arend
2003 Nov 12
1
RMySQL
HI, I have been having trouble installing RMySQL under Redhat Linux 9.0. I am using R 1.8.0 and MySQL 4.0.13. MySQL is install in /opt/mysql. I try to install RMySQL using configure-args to specify the path of mysql but it does not work. Does any body have any suggestions. Thanks, Arend van der Veen The command that I am using is: # R CMD INSTALL
2003 Nov 12
0
RMySQL & couldn't find function ".valueClassTest"
Hi Arend, I had the same problem on RH 9 as you, but the tip on http://stat.bell-labs.com/RS-DBI/download/index.html at the bottom telling: """"""""""""""""""""""""""""""""""""""""" The
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
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 Oct 27
1
trouble with histograms
Hi, I have tab-delimited data with an unequal number of entries per column, of the sort: A B C 1 2 2 3 4 1 5 2 2 6 2 5 2 3 6 2 I would like to make a histogram of the frequencies of each represented number in a "stacked" histogram, where you can see the contribution of each group (A, B or C) to the total height of the bar, and each bar labeled with the
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
2009 Jan 28
3
questions about histogram
Hi all, I'm a new R user. I have the following information about a data set and how to make a histogram? data number of observations 0-2 25 2-10 10 10-100 10 100-1000 5 I tried barplot(height=...,width=...,...), the output looks right but the x-axis is missing. How to fix it? Also can I use<hist> to draw it?
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