Displaying 20 results from an estimated 300000 matches similar to: "barplot"
1997 Aug 04
0
R-alpha: `axes' argument for barplot()
Clearly, barplot should have an `axes' argument. The following trivial
patch does that ... pls apply.
-k
*** src/library/base/funs/barplot.orig Sat Aug 2 15:58:44 1997
--- src/library/base/funs/barplot Sat Aug 2 16:00:22 1997
***************
*** 1,7 ****
"barplot" <-
function (height, names.arg, col=NULL, border=par("fg"),
beside=FALSE, space=0.2,
2010 Jan 29
1
Barplot/Histogram (lattice)
Dear Rxperts..
what settings in barplot and histogram do I use, to show bars in an
monotonously increasing or decreasing order of the frequency of a
categorical variable?
an example is provided below..
histogram(~factor(sample(letters,200,rep=T)))
I was able to get it in 3 - 4 steps.. l
a1 <- sample(letter,200,rep=T)
a2 <- table(a1)
barplot(a2); barplot(sort(a2)) # all variables are not
2003 Nov 07
1
barplot(names.arg) versus axis(labels)
Should I be able to use axis() on a barplot? i have a data.frame, the first
3 values of which are:
> c[1:3,]
median mean
A1 56.5 58.50000
A61 73.0 73.00000
A62 63.0 63.00000
> str(c)
`data.frame': 19 obs. of 2 variables:
$ median: num 56.5 73 63 161 51 55 44.5 22 54 49 ...
$ mean : num 58.5 73.0 63.0 161.0 47.5 ...
if I do barplot(median) and then try
2005 Nov 16
2
invert y-axis in barplot
Hi!
This is probably a very trivial question. Is there an easy way to invert the
y-axis (low values on top) when using the function barplot()?
Thanks,
Jörg
[[alternative HTML version deleted]]
2012 Oct 23
2
barplot
Hi,
I want to make a barplot with the following datasets:
I have a file as following:
name chr position A1 A2 pop1 pop1 pop2 pop2
I have calculated a measure using all the values in columns "pops", the
values are saved in a vector.
Now I want to make a barplot using the values in this vector as the y axis
and the values in the column "position" in the x-axis.
thank you
2003 Jul 21
1
help on barplot
Hello,
I am trying to compare two histograms using barplot. the idea is to plot
the histograms as pairs of columns side by side for each x value. I was
able to do it using barplot before but I can't remember now for the life
of me now how I did it in the past:
> d
[,1] [,2]
-37.5 0.0000000000 2.789396e-05
-32.5 0.0001394700 5.578801e-05
-27.5 0.0019804742
2009 Jan 20
2
Stacked barplot with two stacked bars besides each other
Hi,
I have a particular barplot I would like to generate, but I am having
trouble getting it to work. What I would like is in effect two barplots
with stacked bars merged into one. For example, I have two samples
(yoda1,yoda2) on which I measure whether two variables (var1,var2) are
present or absent for a number of measurements on that sample.
> var1 <- data.frame(yoda1=c(3,7),
2008 Sep 15
1
modifying this barplot
Here is an example barplot that needs some tweaking:
library(gplots)
ratios <- data.frame(c(0.05,0.10,0.9),c(0.06,0.15,0.76))
rownames(ratios) <- c("T1","T2","T3")
colnames(ratios) <- c("A1","A2")
ratios <- as.matrix(ratios)
myplot <- barplot2(ratios, beside = TRUE,col = c("blue",
2009 Oct 12
0
combining/overlaying boxplot and barplot
Dear all,
I would like to visualise when days are rainy or dry in bar/boxplots.
Therefore I've tried to combine raingauge data (boxplots) and percentage
of raingauges with 0mm measurements (barplot). See attachment
mei2004.pdf (if it came through).
I've come this far:
barplot(dcp0[monthindex], col="gray", border=NA, axes=F)
boxplot(t(dcpn[monthindex,]),
2017 Feb 03
0
Suggestion: barplot function
On 1/27/2017 8:30 AM, danielrenato at lycos.com wrote:
> Hello developers folks!
>
> First, congratulations for the wonderful work with R.
>
> For science, barplots with error bars are very important. We were
> wondering that is so easy to use the boxplot function:
>
> boxplot(Spores~treatment, col=treatment_colors)
>
> But there is no such function for barplots with
2009 May 27
3
Labeling barplot bars by multiple factors
I want to plot quantitative data as a function of three two-level factors.
How do I group the bars on a barplot by level through labeling and spacing?
Here <http://www.thomaslevine.org/sample_multiple-factor_barplot.png>'s what
I'm thinking of. Also, I'm pretty sure that I want a barplot, but there may
be something better.
Tom
[[alternative HTML version deleted]]
2009 Dec 10
1
barplot and cumulative curve using ggplot2 layers
Hello
My dataset is as follows:
jobno recruits
1100 18
1200 1
1850 5
2100 190
2789 25
3000 1
. .
. .
the dataset has 130 rows
I want to plot barplot from left side and cumulative curve from right side
in one graph itself using layers in ggplot2.
I sorted the recruits 1st in decreasing order
2006 Sep 22
1
Variable as color in a barplot
Dear wise ones,
I have a problem assigning different colors to bars in a barplot.
The data I'm using is the following dataframe (truncated) :
> L0
r n p t
[...]
18 19 1 1 RFM
19 20 1 1 RFM
20 21 2 1 RFM
21 23 6 1 RIH
22 24 2 1 ROC
23 25 1 1 ROC
24 26 1 1 ROC
25 27 2 1 ROC
26 28 2 1 RFT
27 29 1 1 RFT
28 30 2 1 RFT
29 31 1 1 ROH
[...]
My barplot should
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
2007 Mar 13
3
Adding bars to the right of existing ones using barplot
I'm trying to create a barplot that has two sets of data next to each
other. I'm using barplot with the add=TRUE option, but this simply
adds the second dataset on top of the first, obscuring it. How do I
add the new data to the right on the existing barplot so that both
sets are visible? I've been playing with all sorts of option and
reading the list archives with no
1998 Mar 26
0
S programming style & "missing(.)" [was "regarding bugs in barplot" on R-core]
[The part about S (S-plus and R being dialects of S) programming
(at the end) makes me cc'ing this to R-devel. MM]
On R-core,
>>>>> "Paul" == Paul Murrell <paul@stat.auckland.ac.nz> writes:
Paul> hi (i) the problem with the positioning of the legend in your
Paul> barplot example:
Paul>
2010 Dec 09
1
Barplot with "Independent" Lines Y axis
Hi list. I'm plotting pluviometric (Rain) data as a barplot, and then adding
the salinity variable to this plot as lines. Obviously as these Y scales are
completely different the salinity appears at the lower part of the graph
extremely compacted. I need to plot the line at the exactly same area of the
barplot but with its own Y axis (at the right), so the salinity can use the
plot area
2004 Nov 03
4
Legend placement in barplot?
This has been asked before, but all the answers are hidiously complex.
The
legend.text=TRUE
option of barplot is almost exactly what I need, except I need a
legend.placement='tl'
(top left) option. This option would be in contrast to the default
placement which we could call 'tr' (top right).
Anyone know how to edit the barplot code to make this change? Could
someone like me
2010 Apr 24
2
barplot - offsetting individual bars
Hello,
I'm trying currently using barplot to summarize precipitation data. So far
I've compiled total annual snow and rain accumulation in a table
(attached). I've been successful at plotting it using the following code:
fig=barplot(t(Annual_Precip_table), horiz=TRUE, space=0, col=c("grey70",
"white"), axes=FALSE)
.
.
The result is a stacked barplot with total
2009 Jun 02
5
how to add value on the bar ploted by barplot()
how to add value on the bar ploted by barplot()?
and the axis label is too big, anyone know how to change their font , thanks
--
Xiaogang Yang
Sensorweb Research Laboratory
http://sensorweb.vancouver.wsu.edu/
Washington State University Vancouver
[[alternative HTML version deleted]]