search for: bty

Displaying 20 results from an estimated 425 matches for "bty".

Did you mean: btw
2004 Aug 26
1
"o" bty with different axes
Is it possible to create plot bty=o with different scale of left- and right x-axis? In my documents, by typesetting, bty=u looks disruptively. At 2nd: how to frame the whole box (including title and axes labels) and resize to landscape-oriented rectangle? Tomas Bayer
2008 Apr 17
1
bty
Dear list: Is there any way of getting the equivalent to what you get with bty="l" for the right and bottom axes? and the equivalent to bty="7" for the upper and left axes? Thanks! Agus -- Dr. Agustin Lobo Institut de Ciencies de la Terra "Jaume Almera" (CSIC) LLuis Sole Sabaris s/n 08028 Barcelona Spain Tel. 34 934095410 Fax. 34 934110012 ema...
2007 Jun 19
4
plot only x- and y-axis with origin, no box()
hi all, I'm trying for quite some time to have an x- and y-axis, but no entire box. >plot(..,axes=F) >axis(1) >axis(2) Gives this, but their axes do not go to the origin. Quite a number of people find this gap between the two axes disturbing. Has anyone an idea how to let these axes go to the origin? thank you in advance [[alternative HTML version deleted]]
2004 Mar 25
1
Error in 'legend' help?
Dear all, maybe I have misunderstood something but to me it seems like a minor error in the help for ?legend for the argument 'bg'. There it says: bg: the background color for the legend box. (Note that this is only used if 'bty = "n"'.) I think, however, that it should be changed to: bg: the background color for the legend box. (Note that this is only used if 'bty = "o"'.) Here is some example code. And only in the upper panel we can see a legend with a blue background....
2001 Jul 11
1
Extra lines when bty="n" (PR#1021)
Full_Name: Claus Ekstrøm Version: 1.2.0 OS: Linux (RedHat 7.1) Submission from: (NULL) (212.54.75.68) For some reason two extra lines keep appearing when making graphics with no box, bty="n" (a vertical line along the leftmost side of the graphics region and a horizonal line along the bottom side). The lines are very visible if the plot is saved as a postscript file and is later included in a document. Example code: # postscript("test.ps") y <- rnorm(100...
2024 Nov 28
2
Remove all box around a plot except bottom line (base graphics)
On 2024-11-28 8:36 a.m., Michael Dewey wrote: > To make the plot clearer I have removed the axes but I wish to remove > all the boz except the bottom horizontal line. Using the bty parameter > does not seem to enable me to just leave the horizontal line at the > foot. I can get the "l" version to remove everything except the left > hand side and the base. I could also remove the entire box but that > looks odd. Am I reading the documentation incorrectly...
2008 Aug 11
2
: bquote inside legend()
...with either of them. What I want is a legend with tile "Legend" and underneath a line with a name and a value like that: value = 2. #Code begin: # ------------------- a = 2 # result of a function for example plot(1:10, a*(1:10)) legend(1, 20, c("Legend", bquote(value ==.(a))), bty = 'n') val <- substitute("value" ==.(a), list(a = a)) legend(6, 5, do.call("expression",list("Legend", val)), bty = 'n') # ------------------- # Code end In the first legend I don't like that value == 2 instead of value = 2, in the second lege...
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 this. I've tried both par( bty="o") barplot(stuff) and barplot(stuff, bty="o") Does anyone know a trick that doesn't involve using abline...
2012 May 18
3
colocar subscripts y cursiva
...e estado tratando varias formas de colocar el subíndice para los grados de libertad del F test y la expresión adj; y sencillamente no funciona. legend("topright",legend=c(expression('r[adj]=0.40'),expression('F[3,23]=15.43'),expression('P < 0.001')),col=black, bty='n',cex=0.9) Luego al tratar de colocar las cusriva utilizando par(font=3) tampoco funciona. ¿Alguna idea de un script para hacer esto? Gracias Eric Flores De Gracia School of Biosciences University of Exeter, Cornwall Campus Penryn, Cornwall TR10 9EZ United Kingdom Mobilephone: +044 07...
2008 Sep 19
2
plot order in multi-panel figure
...aphics device? For instance, I want to have two plots on stacked top of each other (mfrow=c(2,1)) but with underlying grid lines spanning both figures vertically. I can put the grid lines on top if I add them last: par(mfrow=c(2,1)) plot.new() plot.window(c(0,1),c(0,1)) for( i in 1:2) axis(i) box(bty="L") rect(0.2,0.2,0.5,0.5,col=8) plot.new() plot.window(c(0,1),c(0,1)) for( i in 1:2) axis(i) box(bty="L") par(mfrow=c(1,1)) plot.window(c(0,1),c(0,1)) abline(v=seq(0,1,by=0.2),lty=3) But ideally I would like to draw the grid lines before drawing other objects on top of it, b...
2007 Apr 20
3
Opinion on R plots: connecting X and Y
Attention R users, especially those that are experienced enough to be opinionated, I need your input. Consider the following simple plot: x <- rnorm(100) y <- rnorm(100) plot(x, y, bty='n') A colleague (and dreaded SAS user) commented that she thought that my plots could be "cleaned up" by connecting the X and Y axes. I know that I can do that with bty='l' but I don't want to, I find that the plots look less cluttered with disjoint axes. However,...
2005 Oct 10
4
plot - no main title and missing abscissa value
Hi all. I have defined a plot thus: par(mar=c(5,5,4,5),las=1, xpd=NA) plot(Day, Ym1Imp, ylim=c(0,100), type="b", bty="l", main="Ym1 Expression", cex=1.3, xaxt="n", yaxt="n") #plot implant data axis(side=1, at=c(0,1,3,5,7,10,14,21), labels=c(0,1,3,5,7,10,14,21)) # label x axis mtext("Day", side =1, at=10, line=3, cex=1.2) # title x axis The problem with this gra...
2024 Nov 28
1
Remove all box around a plot except bottom line (base graphics)
That's pretty similar to call axis function, i.e. ?plot(rnorm(100), yaxt="n", bty="n") ?usr <- par("usr") ?## lines(usr[c(1,2)], usr[c(3,3)], xpd = TRUE) ?axis(1, ...) # where 1 is bottom, 2 left, 3 top, and 4 right sides of the plot box) Best Fer On 11/28/24 14:52, Duncan Murdoch wrote: > On 2024-11-28 8:36 a.m., Michael Dewey wrote: >> T...
2024 Nov 28
1
Remove all box around a plot except bottom line (base graphics)
Thank you Duncan, I will try that next. Michael On 28/11/2024 13:52, Duncan Murdoch wrote: > On 2024-11-28 8:36 a.m., Michael Dewey wrote: >> To make the plot clearer I have removed the axes but I wish to remove >> all the boz except the bottom horizontal line. Using the bty parameter >> does not seem to enable me to just leave the horizontal line at the >> foot. I can get the "l" version to remove everything except the left >> hand side and the base. I could also remove the entire box but that >> looks odd. Am I reading the documentat...
2009 Nov 28
1
Plot-region not complete
...eg(file="Tabh2.jpg",quality=100) plot(Temp3,bew2log,xlab="log(T/K)",ylab=expression(paste("log(",mu,"/cm^2/VS)")),xlim=range(c(Temp3)),cex.axis=1.5,cex.lab=1.5) abline(reg=fitbew,lty=1) lines(Temp3,bewt2,lty=2) legend(1.932,2.9,c("Experiment"),pch=1,bty="n") legend(1.9,2.88,c("Regression","Theorie"),bty="n",lty=c(1,2)) dev.off() Somewhere I have to add a bigger plot-region... and I don't know the code. thanks Markus
2007 Sep 25
3
Legend
I have following syntax for putting a legend : legend("bottom", fill=c("red","blue"), legend=expression(p==0.30, p==0.50), bty="n") However what I want is that : the value "0.30" should be a value of a variable instead of a constant, so that I can put the name of this variable and in legend it's value will be displayed. Can anyone tell me how to do that? Regards, thanks in advance ------...
2010 Jan 29
1
How to draw a border for multiple graphs in one page
...;green") lbls <- round(value/sum(value)*100,1) lbls <- paste(lbls,"%",sep="") postscript(file="H:/test.eps", height = 8, width = 8,onefile = FALSE, paper = "special") par(mfrow=c(2,2),mar=c(0,0,0,0)) pie(value,labels=lbls,col=colors,radius=0.5) box(bty="o",col = 'black') leg <- paste(concentration,lbls,sep=", ") legend(-1,0.85,leg,cex=0.8,fill=colors) par(mfrow=c(2,2),mar=c(0,0,0,0)) pie(value,labels=lbls,col=colors,radius=0.5) box(bty="o",col = 'black') leg <- paste(concentration,lbls,sep=&quo...
2012 Jan 18
2
How do I exactly align the right hand side of "mtext" relative to a plot device? Beyond "adj".
...ersions (the first three lines of each version are identical). I would like the right end of the added text to be the same distance from the legend in both versions. ### v1 dev.new() plot(c(0,1),c(0,1),ylim=c(0,2)) legend("topright",c("data1","data2"),col=c(1,2),lty=1,bty="n") mtext("text",side=3,line=-2,adj=0.8) ### v2 dev.new() plot(c(0,1),c(0,1),ylim=c(0,2)) legend("topright",c("data1","data2"),col=c(1,2),lty=1,bty="n") mtext("really long text",side=3,line=-2,adj=0.8) Thank you for your help...
2004 Oct 25
2
box() and hist()
Hi, does anybody know why the following is not working: > hist(rnorm(200)) > box(bty="o") gives me a box without rounded corners. System: > R.Version() $platform [1] "i386-pc-mingw32" $arch [1] "i386" $os [1] "mingw32" $system [1] "i386, mingw32" $status [1] "" $major [1] "2" $minor [1] "0.0"...
2010 Feb 01
2
Adding line plot to a barplot
Hi, I am trying to add a line plot of barplot, and while the following script works: barplot(DATA1,bty='c') par(new=T) plot(DATA2,type="l",axes=F,xlab="",ylab="",bty='c') axis(4) for some reason the y axis' do not align (the 0s are not in the same position). Is this because I am trying to overlay plot on barplot, and is there any way around this?...