Displaying 20 results from an estimated 10000 matches similar to: "how to use axes=FALSE to get multple plots?"
2007 Jun 19
2
axis labels in multiple plots
Hi,
I'am trying to make a multiple bar plot over a map and I'm having difficulties with the distance
between axes labels and the axis.  Trying to control this with mgp does not help because it
controls both axes simultaneously.  For example, with default values (mgp = c(3, 1, 0)) y-axis
labels are ok, but x-axis labels are not. Setting mgp = c(3, 0, 0) gives good x-axis labels but
the
2007 Feb 20
1
Help with xlab and ylab distance from axes
Dear r-helpers,
In basic graphics, I have a figure with x and y axes suppresed. I  
would like to move the xlab and the ylab closer to the axes. Do I  
have to use mtext()?
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road 
2001 May 09
2
R help files -> S-Plus; par('mgp')
Thanks to Brian Ripley I have been using R utilities for
some time for converting S-Plus UNIX nroff help files 
to .Rd to .html files.  .Rd files seem to be the most
natural format for help files and this format is probably easier
to maintain than nroff, so I would like to start
using .Rd files as my master documentation format
if anyone has a utility for going from .Rd to nroff.
I guess I could
2002 Mar 19
3
plot with the axes at xlim and ylim
I'd like to make a plot with the axes drawn at the values of xlim and
ylim. The default plot draws the axes slightly outside these values. I
have been experimenting with the par(mgp) setting, but specifying
par(mgp=c(2,0,-1)) gives me 
"invalid value specified for graphics parameter "mgp".".
A more complicated mathod that almost seems to work is doing the plot
with
2010 Jun 11
2
Misplacement of Greek letter
Hello.  
I am trying to get my axis label to read as follows
(The symbol) Delta AUC blah blah...
then below it...(some other text)
The problem is the Delta symbol shows up beside the "(some other text)"
rather than the "AUC".  Does any one know how I can get the Delta to remain
beside AUC?  
Here is the actual command should you care to look at it.
par(mar=c(8,8,4,4))
2010 Feb 05
1
About graphics
Hi,
I'm building a graph (barplot) in which the X axis label 
disappears.
I tried to use the option mgp of par() and I could not get 
the desired result.
Note that want the axis labels horizontally.
caes = c(37,20,19,16,75,103)
names(caes) = c("Pinscher", "Pastor \n Alem?o", "Poodle", 
"Rottweiller", "SRD", "Outros")
caess =
2009 Jul 16
1
axis label config mgp
I have long axis labels (8units) on the x axis and 2 unit number labels on
the y axis.  I need to move the x axis title without moving the y axis
title.  I have used mgp=c(title, label and line), but mgp moves both the x
and y titles.  The following puts the y axis title way way out to the left.
Anyone know how to move just the x axis.
X11()
conif<-c("Control", "Switched
2007 Jun 25
2
changing the position of the y label (ylab)
How can I change the position of the ylab, after
enlarging the margins with par(mar=...)? 
Here is the relevant code snippet
----
par(mar=c(5.1,5.1,4.1,2.1))
plot(c(1979,2003),c(40,50),ylim=c(1,73),lab=c(20,10,1),pch=21,col='blue',bg='blue',axes=FALSE,xlab="Years",ylab="Onset/Withdrawl
Date",font.lab=2)
box()
axis(1,las=2)
2017 Jun 20
1
Help with the plot function
Dear all,
I found the last example of this link (
https://sites.ualberta.ca/~lkgray/uploads/7/3/6/2/7362679/6c_-_line_plots_with_error_bars.pdf)
very similar to the one I need to make for my paper, and I think I got what
I wanted by applying some of the suggestions of this mail list.
Here it is the code I devised (maybe there will be further improvements
from the list):
YEAR <- c(1996 ,
2002 Apr 16
1
Can one aply 'mgp' to individual axis?
Dear R-wizards! 
I want to move the axis label of the y-axis a little bit
more apart from the border of the plot (otherwise, it would overlap 
with my horizontal numbering). 'par(mgp(3.5, 1, 0))' does it properly. 
Unfortunately, it also moves the x-axis label which does not look good.
Is there a way to specify 'mgp' for each axis separately or 
is there another way to move just
2017 Jun 20
2
Help with the plot function
Hi, Bert:
Yes, I studied the functions you suggested, but I didn't get to adapt it to
my example whose reproducible code I sent in my first email.
Here it is the code of the functions I studies:
## par
par(mfrow = c(2, 3))
par(cex = 0.6)
par(mar = c(3, 3, 0, 0), oma = c(1, 1, 1, 1))
for (i in 1:6) {
 plot(1, 1, type = "n")
mtext(letters[i], side = 3, line = -1, adj = 0.1, cex =
2013 Jan 07
1
Changing mtext direction, or using text for the margin?
Hi all,
I have read through the archives, but can't find a solution to this problem.
I need the text direction on "dependent B", plotted in margin 4, to go 
top to bottom (opposite what it is now). Here's some sample code:
#plot with mtext example
par(mgp = c(2,1,0), mfrow=c(2,2), las=1, mar=c(2,2,2,2), omi= 
c(0.5,0.2,0,0.2))
a<-1:10
b<-7:16
c<-21:30
plot(a~b,
2017 Jun 20
0
Help with the plot function
Hi
You are quite close. With slight modification of your code:
par(mfrow = c(2, 1))
par(cex = 0.6)
par(mar = c(0, 0, 0, 0), oma = c(4, 4, 0.5, 0.5))
par(tcl = -0.25)
par(mgp = c(2, 0.6, 0))
plot(BUD~YEAR, type="o", ann=F, axes=F, pch=19, ylim=c(60,100),data=g1)
axis(4, las=2)
mtext("Bud Break (Julian Day)", side=4, padj=4)
arrows(g1$YEAR,g1$BUD, g1$YEAR,g1$BUD + g1$BUD_SE,
2002 Jul 01
3
manipulating axis labels in grid and lattice
I am trying to use wireframe at the moment and the axis labels are 
overlapping with the tick labels.  It seems that gpar does not yet 
utilize the mgp argument.  Is there anyway to manipulate the position of 
the axis labels?
The best I can manage so far is to manipulate the cex so as to shrink 
everything down.
thanks, Carlo Maley
-- 
Dr. Carlo C. Maley
Staff Scientist
Fred Hutchinson Cancer
2010 Oct 07
2
text/mtext axis labels on graphs
Hello everyone
I have problem with axis labels on graphs, I have my code as below:
plot(0,0,xlim=c(1,ncol(PA)),ylim=c(1,nrow(PA)),main="Stratigraphic  
Range",xlab="Time  
Bins",ylab="Taxa",cex.axis=1.5,cex.lab=2,cex.main=2.5,mgp=c(5,1.5,0),xaxt="n")
text(1:(length(strat_name)), y=  0, adj=1,  
srt=45,labels=strat_name,xpd=TRUE, cex=1) #adds text to x
2008 Jul 21
2
Getting plot axes where they should be!
Hi Folks,
I've been digging for the solution to this for several
hours now. If there is a solution, it must be one of the
worst "needle-in-a-haystack" examples in R documentation!
Essentially, I want to make an x-y plot in which the
X-axis really is the X-axis (i.e. its vertical position
is at y=0), and the Y-axis really is the Y-axis (i.e.
its horizontal position is at x=0).
2007 Feb 13
4
matlab style plotting in R
Hello
I was wondering how I can achieve matlab style plotting in R,
in the sense that matlab allows you to plot multiple sets of variables
within the same
x-y axes. plot in R does not seem to cater for this. I tried 'overplot' from
the gplots package but this assumes different y axes for the variables.
any suggestions would be very appreciated
Maria
	[[alternative HTML version
2011 Sep 12
1
Centering lines on barplot centers.
Hello,
I am trying to port one of my plotting S+ functions to R and I am having
difficulties!!!  I am including here only the troublesome code!
I first produce a barplot, saving the positions of the bar's centers.
  par(mar = c(6.1, 5.1, 4.1, 4.1), mgp = c(3, 3.0, 0))
  ticks.loc  <- barplot(sum.of.weights, col = 5, xlab = "", ylab = "",
                        axes =
2008 Aug 06
4
defining the distance between axis label and axis
Hi,
How can I make the distance between an axis-label and the axis bigger?
I haven't found anything in par()...
2007 Aug 30
1
Barplot2 using for loop, how to adjust margins?
Hi R-users,
I inted to make multiple plots using for loop. The question is how can
I adjust the left hand side margin of the plot according to the
names.arg argument in barplot2. In every plot I have different
annotations in the y axis and they vary in length. Now when I have
fixed margins
opar <- par(mar=c(3,15,0,2)...
I get the same margins in all of the plots. That leaves lots of white