Displaying 20 results from an estimated 41 matches for "axisnam".
Did you mean:
anispam
2004 Aug 19
3
mtext adj= wrong with several las= (PR#7188)
...line texts: There is no
way to properly adjust text perpendicular to axis 2, for example.
Best
Jens Oehlschl?gel
m <- matrix(1:9, 3)
colnames(m) <- c("several\nlines", "several\nlines", "several\nlines")
par(mfrow=c(2,2))
barplot(m, horiz=TRUE, axes=FALSE, axisnames=FALSE, main="las=0 adj=0.5 is
fine")
mtext(colnames(m), 2, at=seq(0.5+0.2, by=1+0.2, length=3), las=0, adj=0.5)
barplot(m, horiz=TRUE, axes=FALSE, axisnames=FALSE, main="las=0 adj=1 is
different")
mtext(colnames(m), 2, at=seq(0.5+0.2, by=1+0.2, length=3), las=0, adj=1)
barplot...
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
--
2001 Jan 30
1
Disappearing x axis in plot.factor (PR#830)
...ot.factor(factor(1:3), col="red")
which actually should just be the same as the first plot and call
barplot(table(.)), shouldn't it? Where did the ticks and labels go?
Note that
> barplot (table(factor(1:3)), col="red")
has the x-axis.
Something funky is going on with axisnames or args in plot.factor that
I can't figure out. The situation can be remedied with
> plot.factor(factor(1:3), col="red", axes=TRUE)
alas, why do you need "axes=TRUE"?
Regards,
-tom
Peter Dalgaard BSA <p.dalgaard@biostat.ku.dk> writes:
> Thomas Vogels &...
2001 May 15
3
box around a barplot
...following barplot;
using "box=TRUE" won't work.
----------
pc<-c(1,2,5,29,27)
barplot(pc,ylim=c(0,30),yaxs="r",xaxs="r",ylab="Anzahl"
,names.arg=c("Mac","286er","386er","486er","Pentium I")
,axisnames=T,col="gray")
----------
Thanks in advance
Bernd
--
Bernd Wei? (bernd.weiss at epost.de)
PGP Key ID: 0x4117206F
PGP FP: 08B2 09CD 7192 526D 93FD 2070 53DB 7C4F 4117 206F
www.pgpi.org
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list...
2017 Nov 20
3
Σχετ: change colour in barplot
..._Access_Road<-E*(F/1000000)*CEmissions_from_well<-(G/1000000)*E*C
> #combine my outputs into a new dataframe
> dat<-cbind(Emission_from_Land, Emission_from_Access_Road, Emissions_from_well_pad)
> #plot a barplot
> barplot(dat, ylab="Kg-CO2 Eq", ylim=c(0.0e+00, 2e+10), axisnames=FALSE, col=c("blue", "red", "orange"),
>? ??????? main ="Well Site Construction Emissions", legend.text=c("Land", "Access", "Well"),
>? ??????? args.legend = list(x="bottom", horiz="TRUE", bty="n&...
2017 Nov 20
2
change colour in barplot
...A*B*C*DEmission_from_Access_Road<-E*(F/1000000)*CEmissions_from_well<-(G/1000000)*E*C
#combine my outputs into a new dataframe
dat<-cbind(Emission_from_Land, Emission_from_Access_Road, Emissions_from_well_pad)
#plot a barplot
barplot(dat, ylab="Kg-CO2 Eq", ylim=c(0.0e+00, 2e+10), axisnames=FALSE, col=c("blue", "red", "orange"),
??????? main ="Well Site Construction Emissions", legend.text=c("Land", "Access", "Well"),
??????? args.legend = list(x="bottom", horiz="TRUE", bty="n", ins...
2002 Oct 13
1
barplot(): X-Axis Labels
Hello all. I have a simple barplot with sixteen different segments. When I plot my data, only five or six of the labels are showing in the x-axis. How do go get them all to show? Can I set them at a 45.degree angle? Thank you.
Jess
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send
2017 Nov 20
0
change colour in barplot
..._Access_Road<-E*(F/1000000)*CEmissions_from_well<-(G/1000000)*E*C
> #combine my outputs into a new dataframe
> dat<-cbind(Emission_from_Land, Emission_from_Access_Road, Emissions_from_well_pad)
> #plot a barplot
> barplot(dat, ylab="Kg-CO2 Eq", ylim=c(0.0e+00, 2e+10), axisnames=FALSE, col=c("blue", "red", "orange"),
> ??????? main ="Well Site Construction Emissions", legend.text=c("Land", "Access", "Well"),
> ??????? args.legend = list(x="bottom", horiz="TRUE", bty="n&...
2007 Mar 20
2
Ticks on barplots
...is drawn? Or to make such ticks longer than those where there is
no label?
This is going into a function, so I'm hoping for a method that doesn't
require looking at the plot first.
I have attached a PDF.
# sample code (simplified) #
mp <- barplot(t(N.age), xlab = "Year", axisnames = FALSE)
axis(side = 1, at = mp, labels = rownames(N.age), tcl = -0.75)
Thanks!
Mike Prager
NOAA, Beaufort, NC
2006 Apr 27
1
losing x-label when exporting to PNG
...c(6, 4, 4, 2) + 0.1))
Mycolours <- c("red", "blue", "green", "yellow",
"orange" ,"purple")
# --------------plot to screen
--------------------------------------
mp <- barplot(Groups, beside=T ,
horiz=F , las=1, ylim=c(0,60), axisnames=F,
font.lab=2, col=Mycolours
)
text(mp, par("usr")[3] - 1.5, srt = 45, adj = 1,
labels = names(Groups), xpd = T ,
cex=.75,
)
mtext(side = 1, line=5, text="% of Services above
thresholds ")
mtext(side=2, line=2.5, text="Percent")
title(main="&q...
2006 Oct 18
1
trying to rotate barplot labels
...norm data in the archive was
ten values whereas i have 16 values ( or 32 if i do besides = T ) ? I
don't
know in depth what's really happening with all of these commands so it
could be something with 10 versus 16. the plot looks fine though except
for the lack of labels. also, if i take out axisnames=FALSE, it puts the
columnnames on which don't fit. thanks a lot.
par(mar=c(7,4,4,2) + 0.1)
mp<-barplot(prob12matrix,axisnames=FALSE)
axis(1,at= mp,labels=FALSE)
labels<-c("+","+|+","+|++","+|-+","+|+++","+|-++","+...
2008 Nov 07
0
barplot can put legend in wrong place, request option to override that (PR#13265)
...args.legend = list(x = 35, y=140, xjust=0, yjust=.5, lty=2))
$ diff -c barplot.R barplot2.R
*** barplot.R Mon Aug 11 02:51:52 2008
--- barplot2.R Fri Nov 7 11:52:00 2008
***************
*** 25,31 ****
xlim = NULL, ylim = NULL, xpd = TRUE, log = "",
axes = TRUE, axisnames = TRUE,
cex.axis = par("cex.axis"), cex.names = par("cex.axis"),
! inside = TRUE, plot = TRUE, axis.lty = 0, offset = 0, add = FALSE,
...)
{
if (!missing(inside)) .NotYetUsed("inside", error = FALSE)# -> help(.)
--- 25,32 ----
xlim = NU...
2017 Nov 20
0
Σχετ: change colour in barplot
...sions_from_well<-(G/1000000)*E*C
> > #combine my outputs into a new dataframe
> > dat<-cbind(Emission_from_Land, Emission_from_Access_Road,
> Emissions_from_well_pad)
> > #plot a barplot
> > barplot(dat, ylab="Kg-CO2 Eq", ylim=c(0.0e+00, 2e+10),
> axisnames=FALSE, col=c("blue", "red", "orange"),
> >? ??????? main ="Well Site Construction Emissions",
> legend.text=c("Land", "Access", "Well"),
> >? ??????? args.legend = list(x="bottom", horiz="TRUE&q...
2009 Jul 09
9
Population pyramids
Hi, I hope somebody can help me with this issue: I am doing population pyramids using the barplot command, so in the left side I have male age structure and in the right side the female age structure. To plot the male age structure I put the data in negative numbers. Now, I want to change the sign in the bar plot in such way that I have no-sign numbers, both in left and right side of the graph. I
2006 Dec 07
2
barplot - how to force vertical axis to cover entire plot area
I'm using barplot with the following call:
barplot(stat_data[[5]][,],axes=TRUE,axisnames=TRUE,axis.lty=1,xlab=xlab,ylab=ylab,beside=TRUE,las=1,font.lab=2,font.axis=1,legend.text=TRUE)
On some data, the vertical axis does not cover the
whole plot area and the last tick mark is smaller than
the maximum value.
I tried setting the ylim values but even with that,
some plots are still no...
2010 Jun 11
2
Misplacement of Greek letter
...par(font.lab=2)
barplot(c(5724.688,7290.7875), ylab=expression(paste(Delta,"AUC 45-200 min
\n(?g/ml * 155 min)"), xlim=c(0,1), width=0.16,
border="black",font.lab=2,cex.lab=2.1,cex.names=2, names.arg=c("Saline
\n(n=8)", "Exendin\n(9-39) (n=8)"),mgp=c(3,4,0), axisnames=TRUE,
ylim=c(0,10000), col=c('grey88','grey71'), axes=FALSE, lwd=2, space=.5)
axis(2, at=c("0", "2000", "6000","10000"), lwd=2, font=1.7,
pos=-.025,cex.axis=2)
abline(h=0, untf=FALSE, lty=1, lwd=2)
arrows(.4, 8297.291, .4, 6284.284, cod...
2010 May 07
2
smooth line overlap with histogram
...3 7.531443e-04 4.349116e-04 2.494558e-04 1.365303e-04
[19] 6.142313e-05
barplot.x.location <-
barplot(hct, ylim=c(0,0.25),col="yellowgreen",
main="Observed data and fitted gamma sum",
xlab="Rainfall (mm)", ylab="Relative frequency",
names.arg = sq.50, axisnames = TRUE, axis.lty=1,
cex.axis= 0.8,cex.names= 0.8, xaxs='i', yaxs='i')
lines(x = barplot.x.location, y = pdf_formula.2*50,
col = "red", pch = 7, lwd=3, cex.axis= 0.7)
Thank you for any help given.
[[alternative HTML version deleted]]
2011 Jan 18
2
Barplot and line x-axis positions
...e centre of the bars and the points on line don't match up, which is making the whole thing look untidy. I'm wondering if there is a way for me to specify the positions of the centre of each bar on the graph. The code I have is as follows:
xvals <- barplot(wetMeans[,i], yaxt='n', axisnames=F, xlab='', ylab='', main=names[i], border=F, cex.main=0.7)par(new=T)plot(burnMeans[,i], yaxt='n', xlab='', ylab='', type='b', cex=1, pch=16, lty=44, col='black', lwd=1.5)
As you can see I have suppressed the y-axis so this isn't a probl...
2012 May 23
3
barplot
...this is
really poor substitute of what I actually want. Furthermore, in the end I
want the labels vertical to match other graphs (las=2), but when doing that
my labels become so dense it's basically one black blur.
bar=barplot(abundance, col="black",xlab="", ylim=c(0,120), axisnames=T,
ylab="Total fish",axis.lty=1)
axis(1,at=bar, tcl=-0.01, las=1,lab=hatch$month,cex.axis=0.8)
I hope I made my problem clear.
Thank you.
--
View this message in context: http://r.789695.n4.nabble.com/barplot-tp4631070.html
Sent from the R help mailing list archive at Nabble.com.
2004 Aug 13
1
barplot and names.arg
R-help
Is there any option to get closer the x-axis and names.arg from barplot?
Thank you
Luis Ridao Cruz
Fiskiranns??knarstovan
N??at??n 1
P.O. Box 3051
FR-110 T??rshavn
Faroe Islands
Phone: +298 353900
Phone(direct): +298 353912
Mobile: +298 580800
Fax: +298 353901
E-mail: luisr at frs.fo
Web: www.frs.fo