similar to: scaling y-axis to relative frequency in multiple histogram (multhist)

Displaying 20 results from an estimated 200 matches similar to: "scaling y-axis to relative frequency in multiple histogram (multhist)"

2008 Feb 20
3
reshaping data frame
Dear all, I'm having a few problems trying to reshape a data frame. I tried with reshape{stats} and melt{reshape} but I was missing something. Any help is very welcome. Please find details below: ################################# # data in its original shape: indiv <- rep(c("A","B"),c(10,10)) level.1 <- rpois(20, lambda=3) covar.1 <- rlnorm(20, 3, 1) level.2
2008 Feb 22
1
fitting a lognormal distribution using cumulative probabilities
Dear all, I'm trying to estimate the parameters of a lognormal distribution fitted from some data. The tricky thing is that my data represent the time at which I recorded certain events. However, in many cases I don't really know when the event happened. I' only know the time at which I recorded it as already happened. Therefore I want to fit the lognormal from the cumulative
2007 Mar 01
1
how to apply the function cut( ) to many columns in a data.frame?
Dear useRs, In a data.frame (df) I have several columns (x1, x2, x3....xn) containing data as a continuous numerical response: df var x1 x2 x3 1 143 147 137 2 93 93 117 3 164 39 101 4 123 118 97 5 63 125 97 6 129 83 124 7 123 93 136 8 123 80 79 9 89 107 150 10 78 95 121 I want to
2006 Mar 19
1
Extracting numerical vectors from an array - use of multhist (plotrix)
Dear R community members, 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).
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) #produces a plot with
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. Is there a way to alter my following
2006 Jan 04
1
silly, extracting the value of "C" from the results of somers2
Sorry I have a very simple question: I used somers2 function from Design package: > z<- somers2(x,y, weights=w) results are: >z C Dxy n Missing 0.88 0.76 500 0.00 Now I want to call only the value of C to be used in further analyses, but I fail to do it. I have tried: > z$C NULL > z[,C] Error in z[,C]: incorrect number of dimensions and some other silly
2007 Feb 28
0
no df to test the effect of an interaccion on a lmer mixed model
Dear useRs, I am fitting a mixed model using the function lmer from the package lme4, but I have some problems when I try to test the effect of my factors of interest. First let me explain the structure of the model: I'm measuring animal movements. Explicitly, I am interested in displacement (straight-line distance from an initial point). Displacements are measured longitudinally, with one
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
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 following:
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 enlarge
2008 Mar 18
3
UNSOLITED E_MAILS: Integrate R data-analysis projects with Microsoft Office for free
Dear R Admins, I received an unsolicited e-mail from BlueInference as an R user. Does it mean that R that our e-mails (and names) is sharing it's user database with third parties without our consent? Or perhaps the BlueInference guys are using an e-mail address miner to get our contact details? [SNIP] Dear Gorden Jemwa, As a fellow R user, I am sure you agree with me that R is a
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
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
2005 Dec 26
0
evaluation methods for logistic regression with proportion data
Dear list-members, I have made a logistic regression analysis of the spatial distribution of an ecological phenomenon (wildlife-caused crop damage). I divided the region into 5x5 km grids, and in each grid I have performed a number of questionnaires to asses the presence of crop damage in particular houses. As a result, my dependent variable is not a simple presence/ absence data but a
2006 Jan 12
4
Loading Excel file into Limma
Dear mailing group, This is my first time here. Glad to have this resource! I am currently trying to load an Excel file into R (limma package loaded) using the source(*name of directory*) command, but it cannot open the file. I renamed the file as .R and .RData, to no avail. The Excel data contains one gene name per row and about 100 data points per gene (columns). I am only used to
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,
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
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]]