Displaying 20 results from an estimated 10000 matches similar to: "creating empty cells with table()"
2004 May 24
1
barplot
I??ve tried version 1.9.0 barplot with these (and others) example from the
help page:
tN <- table(Ni <- rpois(100, lambda=5))
r <- barplot(tN, col='gray')
I get :
<<...OLE_Obj...>>
Same example with version 1.8.1 gives the following result:
<<...OLE_Obj...>>
What is wrong with v.1.9.0?
Thanks,
Carlos Guevel
2004 Apr 16
2
barplot() does not draw bars correctly in R 1.9.0 (PR#6776)
Bars are not stacked, but superimposed. This happens even with the first
example of barplot:
tN <- table(Ni <- rpois(100, lambda=5))
r <- barplot(tN, col='gray')
--please do not edit the information below--
Version:
platform = i386-pc-mingw32
arch = i386
os = mingw32
system = i386, mingw32
status =
major = 1
minor = 9.0
year = 2004
month = 04
day = 12
2004 Dec 02
2
Drawing a rectangle around a barplot()
Hi
I want to draw a rectangle behind a barplot such that it highlights
those particular bars from the rest of the plot. I have figured out how
to draw a barplot(), and then how to draw a rectangle of the correct
shape and size (using rect()), but when I use rect() it draws over the
top of the bars, and then when I re-draw the bars, it draws with a white
background, thus eliminating my rectangle!
2009 Mar 18
2
multiple barplot
Dear all,
I want to put 9 barplots side by side. My code below only print 5 names from
9 names I gave.
Problem: how to print all of those 9 names? I use cex=0.8 but did not work,
it gave me error message.
d<-matrix(rpois(45,3),5,9)
barplot(d,beside=T,col=rainbow(5),names=c("CRTL","LSB","ONEMKR",
2006 Oct 24
2
To big characters in barplot
Hi everybody!
The characters under the bars in my barplot are to big, so I can't see them all. How can I make them smaller?
Thanks!
David GRaf
--
2009 Oct 14
1
default borders in boxplot and barplot
This is my first post so hopefully I haven't mucked up the rules.
I'm trying to change the default borders in either boxplot or barplot so
that, at the request of a journal, all of my figures have the same type of
border.
I've successfully used par(bty="o") using plot(1:10, bty="o"), but it
seems that barplot and boxplot have their own defaults that override
2009 Mar 31
3
How to specify axis interval unit...
Dear R Users:
Greetings!
Is there any way to specify the axis interval unit for barplots in R.? Any
help is deeply appreciated.
Thanks in advance!
Prasanth VP,
Global Manager - Biometrics,
Delta Technology & Management Services Pvt Ltd,
Plot No: 13/2, Sector - I,
Third Floor, HUDA Techno Enclave,
Madhapur, Hyderabad - 500 033.
Office : +91-40-3028 0659
Mobile : +91-9848
2005 Jun 26
2
visualizing frequencies
Dear everybody,
In our game-theory lesson we have run several classroom-experiments where the
students had to decide for a natural number between one and seven. I have
troubles now to visualize the results: be a the vector of answers.
hist(a) will not assume natural numbers as answers, but rational. It will make
the brakes exactly at the natural numbers, which is difficult to interpret,
as
2005 Dec 13
2
How to make a plot?
Does anyone have an idea of how to make a chart in R like the
ones here that use a graphic:
http://bigpicture.typepad.com/comments/images/slide1.gif
2001 Jul 04
3
by/ NA/ barplot
Colleagues
----------------------------------
System info:
Version 1.3.0 (2001-06-22) on NT
ESS v. 5.1.18 using emacs ver. 20.4
----------------------------------
I have generated an object (class = by) with NA values and want to plot
the output as a bargraph:
x2 <- by(scl.nos, species, sum)
These data are summed counts of fish by species
> x2
INDICES: AGI
[1] 0.729927
2008 May 05
1
how to plots two pairwise data sets into a same graph
Dear all:
I fitted "Observed" into a distribution as frequency. The predicted values are calculated as "predicted" for frequency. bins is "x". I plot observed, predicted against x in a graph. the commond is here.
2009 Apr 01
1
FW: How to specify axis interval unit...
Dear Duncan Murdoch:
Thanks for your tips. By the way, I think I didn't mentioned my question
very clear. What I mean to say is that, in Excel one could decide upon the
axis interval unit. Please see the attached file. Likewise, is it possible
in R...?
Regards,
Prasanth.
-----Original Message-----
From: Duncan Murdoch [mailto:murdoch at stats.uwo.ca]
Sent: Tuesday, March 31, 2009 6:25 PM
2011 Jul 14
2
Problem with x labels of barplot
Hello everyone,
i am currently creating a barplot.
This barplot takes a vector of ~200 datapoints.
Each datapoint represents one bar.
http://img96.imageshack.us/i/human1w.png/
(Ok as you see, it is not only one barplot, but a series of barplots).
Now, these barplots represent a human chromosome. This means they are
ordered. For instance bar number 50, means position 50 in the human
chromosome.
2008 Dec 06
2
Barplot label
Dear all,
I am trying to make barplot from matrix with "beside=FALSE". I have 165 labels in my bar plot. When i plot the label horizontally below the barplot, then all labels are not appear in the plot due to lack of space. I used the following function:
barplot(t(bar), main="Barplot based on LCMS", ylab="RF membership Probability",
2010 Oct 17
2
dpois().......bizarre warning messages
Dear Masters,
I have a question to submit
consider the following script
m<-4.95
obs<-rpois(36,m) # i generate 36 realization from a poisson(m)
hist(obs,freq=F)
curve(dpois(x,m),add=T,col="red") #i wish to overlay on the histogram the
theorical poisson density function
errors are returned saing the x vector doesn't contain integers....
really bizarre i can't give
2009 Oct 25
3
Trying to save both an rgl plot and a bar plot errors
Hello,
I am basically using a script that is designed to first create an rgl 3d scatter plot followed by a barplot on the same data. After this is done, the program is to first save the barplot as a .tiff file then to save the rgl 3d graph as a .png file. Once this is done, it is to repeat this 3d plot and barplot combo with saving 49 more times. The plotting script excerpt will be posted at the
2005 Jun 30
2
How to rotate the axisnames in a BARPLOT
Hi all,
- how can I do a barplot with rotated axis labels? I've seen the example for
just a plot in the FAQ, but I'll missing the coordinates to plot my text at
the right position beneath the bars.
Is there any (easy?) solution?
- how can I set the y-axis in a barplot to logarithmic scale?
Many thanks in advance!
Best Regards
Tom
--
2007 Jun 29
1
How to add elements to a table
Hi,
I've been using R for a few weeks now, but consider myself still a
newbie, especially in what concerns the basics of data handling in R.
My situation is this:
I read in data from a database using RODBC, and then use "table" to
produce a table of "counts per years", table which I give to "plot".
All is well, as long as there are no gaps in the years
2008 Jun 24
2
How to solve empty cells in the contingency table?
Hi,Dear all R experts,
I am trying to do the 2-way contingency table analysis by fitting the loglinear models. However, I found my table has several empty cells which are theoretically missing values.I have no idea of how to solve them coz we cannot compute the simulated p-value with zero marginals.Does someone have some suggestions? Please help me out, thanks a lot!
Cheers,
Yan
2010 Aug 05
3
Plotting range of values in barplot()
Hello,
I am attempting to create a bar plot that contains a range of possible
response values on the x-axis of 1 to 5 and contains barplots for the number
of responses even in the event that there are 0 responses. For example, I
have a data set that contains values of 2, 3, 4, and 5 but I would also like
my graph to show that there are no 1's.
I have attached the resulting graph. The