Displaying 15 results from an estimated 15 matches similar to: "X-Axis Problem with Multhist Plot"
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
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 with multhist or similar
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
2008 May 26
1
Joining Histograms Into a Figure
Hi,
I have two histograms created separately using
the following code. It creates two separate figures.
dat <- read.table(file="GDS1096.modelout", head = FALSE )
__BEGIN__
dat <- read.table(file="GDS1096.modelout", head = FALSE )
hist(dat$V2, main="AIC Freq", xlab = "\# Component", breaks = 36, xlim =
c(0,max(dat$V2)), col = "dark red",
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
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
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]]
2007 Jul 06
5
Clustering nested data
Hi all,
I am interested in performing a cluster analysis on ecological data from
forests in Pennsylvania. I would like to develop definitions for forest
types (red maple forests, upland oak forests, etc.(AH AR in attached table))
based on measured attributes in each forest type. To do this, I would like
to 'draw clusters' around forest types based on information from various
tree
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
2008 Oct 15
0
R-help Digest, Vol 67, Issue 31
V;
Sent via BlackBerry from T-Mobile
-----Original Message-----
From: r-help-request at r-project.org
Date: Tue, 30 Sep 2008 12:00:06
To: <r-help at r-project.org>
Subject: R-help Digest, Vol 67, Issue 31
Send R-help mailing list submissions to
r-help at r-project.org
To subscribe or unsubscribe via the World Wide Web, visit
https://stat.ethz.ch/mailman/listinfo/r-help
or, via email,