Displaying 20 results from an estimated 50000 matches similar to: "histogram plot default"
2008 Feb 16
3
how to specify the location of tick mark on x axies
Dear:
I want to plot barplot and let bar be in the middle of each x axis category.
Do you have this experience?
Many Thanks!
Xin
[[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
2009 May 12
1
how to take away the same varible when I use "merge"
Dear:
I am trying to merge two tables by a common variable. However, there are a
few same variables which are in both of two tables. How can I take them away
when I merge the two tables?
Thanks!
Xin
2007 Dec 19
2
can optimize solve paired euqations?
I used the command below, but R gives me the error message--syntax error.
can anyone see the mistakes I made?
optimize(function(x,y)
+ ((327.727-(1-0.114^10)*y*(1-x)/x/(1-x^y))+(9517.336-327.727 *(1+(1-x)*(1+y)/x-327.727)))^2
+ interval=c(0,1))
At the same time, I use nlm() but R gives me the code
$code
[1] 3
function(vals) {
x <- vals[1]
y <- vals[2]
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?
2008 Jul 17
3
Histogram with two colors depending on condition
Dear List,
Say, we generate data like this-
dat<-rnorm(1000,1,2)
hist(dat)
How do i make the histogram, say, red (col = 2) before X = dat = 0, and rest say, green (col = 3) beyond X = dat = 0 in R?
The resulting histogram could be like this http://ehsan.karim.googlepages.com/histogram.JPG (edited)
Thanks in advance.
Ehsan
http://ehsan.karim.googlepages.com/diaryofastatistician
2008 Sep 29
4
histogram-like plot with two variables
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt.
Name: nicht verf?gbar
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20080929/e8ff7cb6/attachment.pl>
2010 Nov 08
3
how do i plot this "hist"?
Hi all,
I have the following data in abc.dat
=======================
50 0 1 0 0
55 1 14 0 1
60 7 86 0 3
65 22 324 2 3
70 58 1035 1 7
75 30 2568 0 34
80 9 2936 15 162
85 27 2169 46 365
90 80 1439 212 432
95 236 1670 521 281
100 332 827 709 172
105 156 311 556
2007 Apr 19
1
Histogram with uneven bins
Hi R-helpers
I would like to produce a histogram with uneven bins (e.g., 0, 1-2, 3-5,
6-10, 10-20, >20) but I would like the resulting bars to be the same width (
i.e., a bar's width would not be proportional to its corresponding bin
size).
Also, the x and y axes of my histograms frequently (almost always, actually)
extend beyond the axis labels (i.e., there are unlabeled bars). I would
2009 Dec 27
3
help: creating a unified histogram
Good evening,
I would like to put the histograms of several matrices on the same graph,
together on a unified histogram (instead of having one bar per value on the
x-axis, have multiple bars: one representing each matrix, with different
colored bars for example to distinguish between the matrices). I couldn't
find a function doing that involving "hist", "plot" nor other
2008 Oct 29
1
How to set read.table variables to vectors?
The summary stats for the xin and yin variables below are correct. However,
if I use plot(xin,yin), an exception is thrown saying that "object xin is
not found."
Also, it is apparent that I can't successfully replace the x and y vectors
with values from xin and yin.
The four plots on one panel are showing but the range of x and y is only
[0,1], and therefore, it seems like an
2006 Sep 17
2
histogram frequency weighing
Fellow R-helpers,
Suppose we create a histogram as follows (although it could be any vector
with zeroes in it):
R> lenh <- hist(iris$Sepal.Length, br=seq(4, 8, 0.05))
R> lenh$counts
[1] 0 0 0 0 0 1 0 3 0 1 0 4 0 2 0 5 0 6 0 10 0 9 0 4 0
[26] 1 0 6 0 7 0 6 0 8 0 7 0 3 0 6 0 6 0 4 0 9 0 7 0 5
[51] 0 2 0 8 0 3 0 4 0 1 0 1 0 3
2007 Apr 16
2
Histograms of lots of variables
Hi R-helpers,
I wish to produce frequency histograms of all of the variables in my
dataframe (except some identifying variables).
I have tried
>hist(dataframe[,3:20])
to produce histograms of the 3rd through 20th variables in my dataframe, but
R doesn't like that.
Could anyone provide a suggestion?
Also, once I produce the histograms, I'd like to save them as graphic files
on my
2009 May 24
2
A question on type="h" plot lines
Dear R users,
I need a produce a plot with a single panel and a few lines on it. Each line represents a different data set. The line types must be "h", i.e. ?histogram? like (or ?high-density?) vertical lines. The problem is that the vertical lines comprising a plot line of type="h" are drawn from the y=0 line to the (x, y) locations. What I need is vertical lines drawn from
2009 Apr 17
3
Create histogram from data matrix
Hello!
Thanks for reading this request for assistance. I have a question
regarding creating a histogram-like figure from data that are not
currently in the correct format for the "hist" command.
Specifically, my data have been processed and are in a matrix with
columns containing the variables of interest and separate columns
containing the number of times this variable was
2009 May 28
3
how to avoid add 'X' before numeric colnames when read.table
Hi all,
Is there any way to keep numeric colnames as is? Any hint will be appreicated.
Xin Zheng
[[alternative HTML version deleted]]
2008 Apr 14
3
how to add different type of lines (short dash, long dash) into current plot)
Dear
I try to add three different lines (solid, short dash, long dash) in to current barplot. I saw there are types of lines ("p","b", ect). However, they are not what I request. Has nayone have this experience?
Many Thanks!
Xin
[[alternative HTML version deleted]]
2009 Jul 26
2
problems hist() and density
Hello,
I have a problem with the hist() function and showing densities. The
densities sum to 50 and not to 1! I use R version 2.9.1 (2009-06-26) and
I load the seqinR library.
My data is the following vector:
[1] 0.1400000 0.2000000 0.2200000 0.2828283 0.1600000 0.1600000
0.3600000
[8] 0.1600000 0.2200000 0.2600000 0.2000000 0.3000000 0.2200000
0.2342342
[15] 0.1800000 0.2200000 0.1600000
2008 Feb 15
1
anyone know how to plot histograma and line in the same graph
Dear:
I have two series data, which are:
p1-obs p1-exp
13 13
20 23.296
22 18.139
19 14.972
10 12.576
16 10.658
8 9.0794
4 7.7625
3 6.6536
5 5.7141
7 4.9146
4 4.2321
0 3.648
4 3.1471
4 2.7168
2 2.3468
4 2.0283
2 1.7537
2 1.517
5 1.3127
1 1.1362
2008 Jun 11
2
Increase Number of Decimals
R Users,
I'm new to R and was wondering how I can show more decimal places when I run
commands. If I'm simply running a correlation(ES,YM) how would I increase
the number of decimal places R shows? When I run this it shows me .9734044.
How can I extend this further?
In addition I was running histograms on high frequency data to check a
Spread. The spread moves at an extremely granular