Displaying 20 results from an estimated 7976 matches for "besid".
Did you mean:
beside
2005 Feb 07
2
barplot: space makes beside=F (PR#7668)
Full_Name: Ondrej Medek
Version: 2.0.1
OS: Linux/Debian Sarge
Submission from: (NULL) (147.32.127.204)
Hi,
I had a R version 1.5.1 and I used a 'barplot' with 'beside=T' and 'space' has
been vector of 8 numbers 'space=c(1,0.5,rep(c(0.5,-0.5),3))'. Then I upgraded to
the R 2.0.1 and my graphs are broken. If I use any vector of more than 2
elements for 'space' then the graph is drawn as 'beside=F' even if I specify
'beside=...
2009 Dec 15
2
Diagonal Labels on "Beside" Bars in Barplot
...based on an example provided in the following:
Referencing:
Statistics with R
Vincent Zoonekynd
<zoonek at math.jussieu.fr>
6th January 2007
URL:
http://zoonek2.free.fr/UNIX/48_R/all.html
data(HairEyeColor)
a <- as.table( apply(HairEyeColor, c(1,2), sum) )
# Provided Example
barplot(a, beside = TRUE,
legend.text = attr(a, "dimnames")$Hair)
# I would like to make the labels on the x-axis diagonal, so I tried the following:
barplot_reference<-barplot(a, beside = TRUE,
legend.text = attr(a, "dimnames")$Hair,...
2004 Dec 01
2
barplot() using beside=TRUE and the density argument
Hi
I am using barplot() to draw some barplots, with a matrix as the data so
that multiple bars are drawn for each data point. I want to use the
argument "beside=TRUE" to juxtapose the bars instead of stacking them.
If I execute:
barplot(data,names.arg=names,density=c(20,10),beside=FALSE)
I get the expected behaviour i.e. the bottom part of the column is
shaded 20 lines per inch, the top part 10 lines per inch. However, if I
try:
barplot(data,nam...
2010 Jan 20
3
barchart with stacked and beside bars
Hi,
Is there a way to stack bars in a barchart as well as "beside" bars for the
same treatment? eg....
I have one barchart like this:
bio<-matrix(c(10,23,9,25),nrow=2,byrow=T)
ntreat<-c("n0","n96")
colnames(bio)<-ntreat
barplot(bio,beside=T)
now i want a similar barchart but with stacked bars:
ld<-matrix(c(25,25,50,10,30,...
2011 Jun 02
1
Adding a line to a beside=TRUE barplot
...bels as are used by the paired Bars. It
appears, however, that R/lattice ignores the x-axis points used by the bars
and plots the x points for the line at ½ points.
Can you help me tweak this code so that the nth bump in the line appears
over the same nth pair of bars? I’m open to any options besides
lattice/barplot.
library(lattice)
aa <- abs(rnorm(c(1:10)))*5
bb <- abs(rnorm(c(1:10)))*5
cc <- abs(rnorm(c(1:10)))*5
dd <- as.matrix(cbind(aa, bb))
barplot(t(dd), beside=TRUE, ylim=c(0,10))
lines(cc)
Many thanks,
Galen
[[alternative HTML version deleted]]
2006 Dec 01
3
Make many barplot into one plot
...quot;Blond")))
empat <- array(c(25,13,50,78,19,34,84,101), dim=c(2,4),
dimnames=list(c("Negative", "Positive"), c("Black",
"Brown", "Red", "Blond")))
## with barplot I can make a plot for each table:
barplot(satu, beside=TRUE, legend.text=rownames(satu),
ylim = c(0, max(colSums(satu)) * 1.2))
x11()
barplot(dua, beside=TRUE, legend.text=rownames(dua),
ylim = c(0, max(colSums(dua)) * 1.2))
x11()
barplot(tiga, beside=TRUE, legend.text=rownames(tiga),
ylim = c(0, max(colSums(tiga)) * 1.2))
x11(...
2005 Feb 18
3
Barplot - Can't figure it out
Hi,
I have two catagorical vectors like this;
x = c(1, 2, 4, 2, 1)
y = c(2, 4, 2 ,4, 1)
I want to set up a barplot with the catagories 1-4 horizontally and
number of occurances vertically for each vector x,y. I've tried
boxplot(table(x,y), beside=T)
and
boxplot(c(x,y), beside=T)
among others, but can't get it to work...Any ideas? I'd apppreciate any help
2012 Aug 22
3
Barplot with Secondary axis
Hi all,
I am trying to plot a bar chart and trying to plot a line as a secondary
axis as my scale is different for two y axis.
I am plotting a clustered bar chart by using besides = True option in
barplot function and my y coordinates are not plotted exactly at the center
on each two bars. Please help me.
I am pasting the code as follows.
x = c("a","b","c","d")
y= cbind(c(50,40,30,20),c(40,30,20,10))
y2 = c(0.80,0.65,0.75,0.50)
bar...
2009 Jun 01
1
write values of points beside points in plot
Hi everyone,
is it possible to write a certain value beside a point in a plot?
I'm plotting the following:
plot(coefficient$intercept ~ coefficient$average_BM_leaves_needles,
main="intercepts ::: BM_leaves_needles",
ylab="intercepts", xlab="average BM_leaves_needles per site [kg]")
and I want to have the value of co...
2009 Jun 04
1
'beside' option for boxplots
Is there any way to get a boxplot of several data sets beside one
another on the same graph, as there is for barplot?
If I do:
d1 <- data.frame(a = c(rep(1:3, each = 3)), b = c(1:9))
d2 <- data.frame(a = c(rep(1:3, each = 3)), b = c(9:1))
boxplot(d1$b ~ d1$a)
boxplot(d2$b ~ d2$a, add=T)
It will show the two datasets on the one graph, but the middl...
2009 Jan 22
2
blowup portion of graph beside it
Hi,
I'd like to blow up portions of my graph and put it in boxes beside the
graph.Is there an addon to do this?
--
Rajesh.J
[[alternative HTML version deleted]]
2008 May 28
1
superposing barplots having different scales
Hello. I know how to make a bar plot in which a numeric y variable is
plotted against some grouping variable X (say, groups A, B, C) when this
grouping variable is subdivided into each of two subgroups; so the bars
would be: (group A subgroup 1) beside (group A subgroup 2), then (group B
subgroup 1) beside (group B subgroup 2), and so on. This is done using the
beside=TRUE argument in the barplot() function. However, I want to make a
slightly different type of barplot in which the numerical values of the
subgroups (subgroups 1 and 2) are measur...
2008 May 03
2
Stacked bar plot anomaly When column contains a negative and a positive value
Hello users,
I've noticed a problem when creating a stacked column plot when a column
contains a negative and a positive value. e.g.
series1<-c(-1,-2, 3, 4, 5)
series2<-c( 5, -4,-3,-2, 1)
data<-rbind(series1,series2)
barplot(as.matrix(data), beside=FALSE)
In these cases (i.e. first, third and fifth columns) the plotting is not
handled correctly. Compare this output with that of:
barplot(as.matrix(data), beside=TRUE)
Shouldn't the plots look the same except in the beside=FALSE scenario
the constituent bars should not be juxtaposed...
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",
"TWOMKR","BLUP","BLUPQ","BLUP1M","BLUP2M","GAS"))
# with cex=0.8 (but not working)
barplot(d,beside=T,col=rainbow(5),names=c("CRTL","LSB...
2006 Feb 21
2
rotated labels in barplot with beside=T and multiple groups
...examples shown via the r-help mailing list I am trying
to make a plot where each of the groups gets displayed in a
histogram-like fashion upwards with the number 0.1, 0.2 and so forth
underneath the group. What I do is the following:
> par(mar = c(6, 4, 4, 2) + 0.1)
> bplot = barplot(lsu, beside=TRUE, col=colors[1:length(lsu[,1])], ylim = c(0,1.0), xaxt = "n", xlab = "")
> axis(side=1,at=bplot, labels=FALSE, tick=TRUE)
NULL
> nam=rep("a",10)
> text(bplot, par("usr")[3] - 1.5, srt = 45, adj = 1, labels = nam, xpd = TRUE)
NULL
>
The resul...
2008 Jan 29
3
How to get two y-axises in a bar plot?
...ets more complicated with bars.Although these
kind of bar graphs are quite common, I have found very limited
information about how to do them in R. I have been struggling with the
barplot() command. My problem is that the bars for y1 and y2 end up at
the same place (blocking each other) and not beside each other when I
use par(new=TRUE). Is there a way to separate them so y1 and y2 are
placed beside each other at each x level, or is this easier to do this
with lattice?? I would also like to add error bars but I guess that
should not be a problem.
For code and data, see below.
Cheers,
Gus...
2006 May 18
4
Can I send rendered .html to somewhere besides the web server?
Is there any way to tell Rails to send the .html file it renders somewhere other than the web server? I need to save a page to the server''s file system instead of sending it to the user''s browser.
Thanks!
Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060518/facce47e/attachment.html
2008 Jun 05
0
bug in barplot.default (graphics) (PR#11585)
There seems to be a minor bug in barplot.default when used with log scale w=
here one or more values is NA:
dat <- matrix(1:25, 5)
dat[2,3] <- NA
barplot(dat, beside =3D T) #Plots and appropriate barplot with gaps for m=
issing data
barplot(dat, beside =3D T, log =3D "y")
#Error in if (min(height + offset) <=3D 0) stop("log scale error: at least =
one 'height + offset' value <=3D 0") :
# missing value where TRUE/FALSE neede...
2004 May 20
0
Windows Explorer - Samba Listing beside each Mapped D rive
...----Original Message-----
From: samba-bounces+jack.palmadesso=siemens.com@lists.samba.org
[mailto:samba-bounces+jack.palmadesso=siemens.com@lists.samba.org]On
Behalf Of Terry L. Eleiott
Sent: Thursday, May 20, 2004 10:09 AM
To: samba@lists.samba.org
Subject: [Samba] Windows Explorer - Samba Listing beside each Mapped
Drive
OS Redhat Enterprise 3.0
Samba 3.0.2-6.3E
In explorer the comment 'Samba 3.0.2-6.3E' is listed beside each mapped
drive. How do I eliminate this comment?
Thanks
Terry
--
To unsubscribe from this list go to the following URL and read the
instructions: http://list...
2002 Jul 25
3
Barplot coloring question
...a points so that any pair of identical columns
(e.g., ADVP) are plotted closer to each other than any neighbouring pairs.
This much is easy to do:
data<-as.matrix(read.table("test.data"))
colorlist <- c("red")
# build basic barplot:
barplot(data,
beside=FALSE, # don't put bars beside each other
col=colorlist, # list of colors
xlim = c(1,40), # x-axis limits
width = .65, # width of bar plots
ylim=c(0, 140), # y-axis limits
space = c(1,.5), # space between bars, and between bar-pairs...