Displaying 13 results from an estimated 13 matches for "myhist".
Did you mean:
mydist
2004 Feb 23
2
deleting elements from an array/object
Hello,
I created a simple histogram with:
myHist<-hist(myData)
the object myHist now has two arrays (among the others):
myHist$mids
myHist$counts
Since myHist$counts contains some "0", and I want to calculate the linear fit among myHist$mids and log(myHist$counts), I want remove the elements of both arrays where these "0&quo...
2008 Jun 16
4
Superimposing Line over Histogram in Density Plot
Hi,
Currently I have a density plot generated with this
snippet.
Is there a way I can add a line curve on top of it?
I mean in one figure
__BEGIN__
myhist <- hist(x
col="blue",
main = "Density Plot",
xlab = "Exp Level",
)
__END__
- Gundala Viswanath
Jakarta - Indonesia
2010 Nov 10
1
par mfrow in "function" problem
Hi all,
I defined the following
#############################
myhist=function(x){
hist(x,xlab="",main="")
h=hist(x)
xfit=seq(min(x),max(x),length=100)
yfit=dnorm(xfit,mean(x),sd=sd(x))
yfit=yfit*diff(h$mids[1:2])*length(x)
lines(xfit, yfit, col="blue", lwd=2)
}
#############################
individually, it worked fine
however,...
2006 Apr 27
3
relative frequency plot
Hi All,
I want to use "hist" to get the relative frequency plot. But the range of
ylab is greater than 1,which I think it should be less than 1 since it
stands for the probability.
Here is my code:
x<-c(1,1,1,0,0,1,1,5,1,1,0,1,1,0,1,0,1,1,0,0,1,1,1,1,1,1,1,1,1,4,1,0,2,1,1,1
,1,1,0,0,1,0,1,1,1,1,1,1,1,1,1)
2004 Oct 11
2
question on function argument
dear all,
i've looked at the r-intro (chapter 10, writing your own functions)
and searched the r-help archives but am still stuck at the following.
i have a simple function, something like:
myhist<-function(yvar) {
y<-subset(myframe,yvar>1 & yvar<=150000,select=yvar)
attach(y)
hist(yvar)
}
calling it as follows:
myhist(x1)
gives the following error:
Error in attach(y) : attempt to set an attribute on NULL
what am i doing wrong here?
thanks in advance, edwin
2004 Feb 28
1
Basic general statistical problem.
...et some data (i.e length of river) you may want to look at its distribution.
Then you probably want to find which law follows this distribution,
and to test the goodness of the fit.
For doing this simple analysis I am writing some code schematically represented below:
1)calculate the histogram:
myhist<-hist(myData, breaks=....)
Question: how to calculate the standard deviation of each class of the hist? I have not seen it in the output of hist
2)Looking at the graph it seems to follow a linear model:
I plot the points: points(myhist$mids,myhist$counts)
Question: How to plot also the weights (...
2003 Oct 13
1
Rotate a plot, and subplot
Hi all,
Is there a way to rotate a plot, e.g. a histogram, by a certain angle
(90/180/270 degress)? I spent hours trying to figure out how this is
done, but without success.
Also, I'm looking for an equivalent to the S-Plus "subplot" command to
insert a kind of "thumbnail" graphic into a bigger one. How is this best
done in R?
Thanks for your help
Pascal
2008 Apr 14
2
Histogram Label Font Size
Hi!
I'm having a trouble changing font size of histogram label.
I have tried help(hist), but I couldn't find anything explain how to fix label's font size.
Could you help me please?
Thank you.
_________________________________________________________________
Going green? See the top 12 foods to eat organic.
1N1653A
[[alternative HTML version deleted]]
2008 Jan 11
1
Histogram from frequency table?
Hi, I've had some trouble figuring out how to produce a histogram in R directly given a frequency table or relative frequency table. I've looked through the documentation and mailing list, and have only found information on producing histograms given the original data set. Any help would be appreciated!
An example of what I'd like to do would be to take the following frequency table:
2007 May 27
1
Passing a missing argument
Dear userRs,
Is there a way to explicitly set an argument to a function call as
missing?
E.g.,
histogram(foo,
bar,
endpoints=ifelse(!missing(limits),limits,NA/NULL/whatever)))
In this call I want to set a value to the endpoints argument only if the
`limits' variable has been set, and leave the defaults otherwise.
The only way I could do it is thus:
if
2011 Sep 08
6
Searching the console
Is there any way to search the console during an interactive session? I've
looked and looked, and can not find one. In some add-on package, maybe?
Sorry to be so basic, but help would be greatly appreciated.
andrewH
--
View this message in context: http://r.789695.n4.nabble.com/Searching-the-console-tp3797884p3797884.html
Sent from the R help mailing list archive at Nabble.com.
2006 Apr 05
1
Bin by bin histogram comparisons
Hello,
I have created two histograms with:
hist2d(gps2, nbins=200, col = c("white",heat.colors(16)))
Both of them have the same range and the same number of bins.
Now I would like to compare them bin by bin and plot the results.
Could someone please tell me how to do that. I searched the man pages and
the web, but couldn't find anything.
Thank you very much.
Phil
2008 Oct 21
5
how to plot the histogram and the curve in the same graph
i want to plot the histogram and the curve in the same graph.if i have a set
of data ,i plot the histogram and also want to see what distribution it
was.So i want to plot the curve to know what distribution it like.
--
View this message in context: http://www.nabble.com/how-to-plot-the-histogram-and-the-curve-in--the-same-graph-tp20082506p20082506.html
Sent from the R help mailing list archive at