search for: multhist

Displaying 14 results from an estimated 14 matches for "multhist".

2006 Mar 19
1
Extracting numerical vectors from an array - use of multhist (plotrix)
...bers, I am very new to R, so I hope I didn´t oversee the answer to my question in the manuals and faqs. I am trying to create a histogram containing several data sets (I would like to see how the dependent variable is distributed for the different groups). This should be possible using the function multhist contained in the plotrix package. (I am using R 2.2.1, in windows XP). I have an array with > dim(risetime) [1] 5 8 4 4 79 And I would like to plot subsets of this array with multhist. As far as I could understand multhist can only use a list of numerical vectors, and that is why it can n...
2012 Feb 23
1
multhist weird behavior/ xlabels wrong
Hi, I found some weird behavior of the function multhist in the plotrix package and I would like to ask you about it: so, it works well to put two histograms next to each other, but I don't understand the breaks… so for example, library(plotrix) mh <- list(rnorm(200, mean=100, sd=10), rnorm(200, mean=100, sd=10)) multhist(mh)...
2006 Nov 30
1
scaling y-axis to relative frequency in multiple histogram (multhist)
Hi, I'm plotting a multiple histogram using the function multhist {package plotrix}, something like: library(plotrix) mh <- list(rnorm(200, mean=200, sd=50), rnorm(200, mean=250, sd=50)) multhist(mh) In this graph y-axis represents the frequency of observations.... but I would like it to be scaled into relative frequencies, does anybody know how to do this...
2008 May 26
1
X-Axis Problem with Multhist Plot
I am creating a side-by-side histogram using "multhist" of PLOTRIX. However, I can't seem to control the X-axis. It yields the following X points in the axis: 1 3 5 7 9 13 17 21 25 29 33 with uneven spacing between x-ticks (see attached file). Especially I want to create a bar for every x-axis (1,2,3,4...36), now not every x-axis has a bar....
2007 Jan 11
0
a way to control xlim in multhist?
Thanks in advance for any suggestions: I am using the 'multhist' function in the 'plotrix' package to display histograms of some variable 'x' given some value of another variable 'z' -- for example, separate histograms for some variable according to sex (or another dichotomous) variable. Thus I am using something like the follow...
2008 Aug 15
0
x axis with multhist
I have lots of data that needs to be viewed as a histogram, and I've found the multhist package to work quite nicely--for the most part. The only problem is that I can't figure out a way to get the x-axis to make any logical sense. I have a data set with exactly 26 different values, but when I try and plot it with multhist, There are tick marks at 0.5, 3.5...26. When I...
2010 May 14
2
multhist,labels and percentages
Hi All, I am in the annoying position of having to present some data to someone who seems to be somewhat less than numerate. I need to label the y-axes of a multhist with the y-axis labeled not as counts but as percentage of a population. Plotting the standard histogram is in a way fine, all I need is to: -- have a left-handside y-axis labels for pop 1 and a right-handside y-axis labels for pop2 -- replace the counts in each axis with population percentages (e...
2005 Dec 06
2
urgent
Hello R Users, I have two sets of values x <- c(7, 7 , 8, 9, 15, 17, 18) y <- c(7, 8, 9, 15, 17, 19, 20, 20, 25, 23, 22) I am able to create multi histogram using multhist(). But not able to control the 'xlim'. ie the xaxis is showing 7.5, 13, 18, 23 1st on what basis it is calculated 2nd I want it to be like 7 8 9 15 17 and so on Can any one help me With Regards Subhabrata Pal [[alternative HTML version deleted]]
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 terminology. What I want to d...
2008 Mar 17
0
Weighted histograms / distributions (retry)
Hi all, I'd be greatful for any assistance with these two problem I'm facing: 1. How can I combine weighted.hist() and multhist() from the plotrix library so that I can display two weighted histograms on the same chart ? (if anyone is familiar with a different library or function that already does that, that would be great to know as well ) 2. How can I display weighted histograms or weighted distributions in a lattice ch...
2009 Jun 09
2
is it possible to combine multiple barplots?
i am working with two sets of likert scale type (4 distinct values) data: dataA <- rep(1:4, c(3,2,2,4)) dataB <- rep(1:4, c(5,4,3,2)) i can now (bar)plot both of these separately and compare the distributions. plot(table(dataA), type='h') plot(table(dataB), type='h') is there a way to plot both of them in one plot, so that the bars for value "1" (dataA: 3,
2012 Jun 26
3
plotting two histograms on one plot with hist function
I would like to plot two data sets (frequency (y-axis) of mean values for 0-1(x=axis)) on a single histogram for comparison. The hist() only allow the overlay of two histograms, and although barplot() allows beside=TRUE, it does not show frequency values (like hist) but rather all of the values. Is there any way that I can use the hist() to plot two data sets similar to the barplot(). Any help or
2008 Jan 24
4
two histograms in the same graph
Dear Contributors: I have two vectors x and z, and I want to display the histograms of both vectors in the same graph, x in red bars, z in blue bars. If you have any clue on how to do that, I will be very glad to hear it!!!!!! Thanks in advance again, Juan Pablo Fededa [[alternative HTML version deleted]]
2008 Oct 15
0
R-help Digest, Vol 67, Issue 31
...project.org Message-ID: <5AC387C2-A9AD-4C68-9399-4EBBE4D14AF4 at licht-malerei.de> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Hi, I found this example for producing multiple histograms; require(plotrix) l <- list(rnorm(50),rnorm(50,sd=2),rnorm(50,mean=3)) multhist(l) Now I want something like that, for creating multiple density distributions (in one plot). But I have two variables for one density distribution and "multhist" only allows me to add one variable; x <- seq(from=0, to=14, by=1) y <- dbinom(x, 14, 0.7, log = FALSE) Is...