Re: [R] axes labeling

2012-12-23 Thread Jim Lemon
On 12/21/2012 07:12 AM, Sam Steingold wrote: * David L Carlson [2012-12-20 13:58:00 -0600]: It is possible, but only by using axis() since you can specify axis breaks in a plot command, but not the labels. You can ignore most of the axis() options so the commands are pretty simple: plot(x=c(1,

Re: [R] axes labeling

2012-12-20 Thread William Dunlap
> myAxis(side=2) # "0k", ..., "800k", "1M" on y axis Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of Sam Steingold >

Re: [R] axes labeling

2012-12-20 Thread Sam Steingold
> * David L Carlson [2012-12-20 13:58:00 -0600]: > > It is possible, but only by using axis() since you can specify axis breaks > in a plot command, but not the labels. You can ignore most of the axis() > options so the commands are pretty simple: > > plot(x=c(1, 100), y=c(1, 100), xlab="x

Re: [R] axes labeling

2012-12-20 Thread David L Carlson
-- David L Carlson Associate Professor of Anthropology Texas A&M University College Station, TX 77843-4352 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Sam S

[R] axes labeling

2012-12-20 Thread Sam Steingold
Is it possible to control formatting of the numbers which go along the axes in plots? e.g. plot(x=1:100,y=1:100) will label the X axis as "0d+00", "2e+05" &c. I want that to read 0, 200k, 400k &c. I know of the function axis(), but it offers far too much control for this simple task. thanks

Re: [R] Axes value format

2012-05-10 Thread Vihan Pandey
- vihan > > A.K. > > > > > > > > - Original Message - > From: Vihan Pandey > To: r-help > Cc: > Sent: Tuesday, May 8, 2012 1:29 PM > Subject: [R] Axes value format > > Hi all, > > I have some graphs where the values on the X and Y axes are by default &

Re: [R] Axes value format

2012-05-10 Thread Vihan Pandey
sessioninfo() Thanks and Cheers! - vihan > > > > John Kane > Kingston ON Canada > > >> -Original Message- >> From: vihanpan...@gmail.com >> Sent: Tue, 8 May 2012 20:23:21 +0200 >> To: jrkrid...@inbox.com >> Subject: Re: [R] Axes value format

Re: [R] Axes value format

2012-05-10 Thread Vihan Pandey
2$exec_time,col="blue") >> points(my_values2$num_sims,my_values2$exec_time,col="blue") >> >> >> legend("topright", >> lty=c(1,1), >>c("foo","bar"), >>col=c("red","blue"

Re: [R] Axes value format

2012-05-08 Thread arun
Hi Vihan, The link below might be helpful. (http://stackoverflow.com/questions/3415097/controlling-number-formatting-at-axis-of-r-plots) A.K. - Original Message - From: Vihan Pandey To: r-help Cc: Sent: Tuesday, May 8, 2012 1:29 PM Subject: [R] Axes value format Hi all, I

Re: [R] Axes value format

2012-05-08 Thread John Kane
pan...@gmail.com > Sent: Tue, 8 May 2012 20:23:21 +0200 > To: jrkrid...@inbox.com > Subject: Re: [R] Axes value format > > On 8 May 2012 19:47, John Kane wrote: >> Quite likely, but we need to know what you are doing and what graphics >> package you are using. >> &g

Re: [R] Axes value format

2012-05-08 Thread David Winsemius
as saved in:", getwd())) == foo.csv and bar.csv have values like: "num_sims","exec_time" 100,44556 2000000,89112 300,133668 etc. Please let me know if you require any additional information. Cheers! - vihan John Kane Kingston ON Canada -Original Messa

Re: [R] Axes value format

2012-05-08 Thread Vihan Pandey
00,44556 200,89112 300,133668 etc. Please let me know if you require any additional information. Cheers! - vihan > > John Kane > Kingston ON Canada > > >> -Original Message- >> From: vihanpan...@gmail.com >> Sent: Tue, 8 May 2012 19:29:45 +02

Re: [R] Axes value format

2012-05-08 Thread John Kane
age- > From: vihanpan...@gmail.com > Sent: Tue, 8 May 2012 19:29:45 +0200 > To: r-help@r-project.org > Subject: [R] Axes value format > > Hi all, > > I have some graphs where the values on the X and Y axes are by default > in exponent form like 2e+05 or 1.0e+07. Is i

[R] Axes value format

2012-05-08 Thread Vihan Pandey
Hi all, I have some graphs where the values on the X and Y axes are by default in exponent form like 2e+05 or 1.0e+07. Is it possible to make them in a more readable form like 10M for 1.0e+07 or 200K for 2e+05? Thanks and Regards, - vihan __ R-help@r-

Re: [R] axes start at end of plot

2011-08-25 Thread Jim Lemon
On 08/25/2011 06:31 PM, Sumukh Sathnur wrote: Hello all, I used the following script to generate a plot, but when I try to place axes, the axes start at the end of my plot and continue off the plot; the attached image shows what happens when I try to generate axes. library(fields) as.matrix(read

[R] axes start at end of plot

2011-08-25 Thread Sumukh Sathnur
Hello all, I used the following script to generate a plot, but when I try to place axes, the axes start at the end of my plot and continue off the plot; the attached image shows what happens when I try to generate axes. library(fields) as.matrix(read.table("Matrix.txt", sep="\t"))->x #the mat

Re: [R] axes label

2011-08-01 Thread Peter Ehlers
On 2011-08-01 03:32, ogbos okike wrote: Dear All, I am trying to put 10^-8 st km^-2day^-1 on x-axis of my plot. I tried using : ylab = expression(paste("st / ", plain(km)^2, " / day")) to see if I can at least get the unit before thinking about the power of 10 (10^-8). However, ylab = expressio

[R] axes label

2011-08-01 Thread ogbos okike
Dear All, I am trying to put 10^-8 st km^-2day^-1 on x-axis of my plot. I tried using : ylab = expression(paste("st / ", plain(km)^2, " / day")) to see if I can at least get the unit before thinking about the power of 10 (10^-8). However, ylab = expression(paste("st / ", plain(km)^2, " / day")) d

Re: [R] Axes labels, greek letters and spaces

2011-06-28 Thread David Winsemius
The * operator can be used for a non-space separation. expression(Chlorophyll*italic(a)~mu*g~cm^-2) -- David. On Jun 28, 2011, at 2:21 PM, Sam Albers wrote: Hello all, I can't seem to figure how to use a greek character in expression() in plot() labels without adding a space. So for examp

[R] Axes labels, greek letters and spaces

2011-06-28 Thread Sam Albers
Hello all, I can't seem to figure how to use a greek character in expression() in plot() labels without adding a space. So for example below when plotting this out x<-1:10 plot(x,x^2, xlab=expression(Chlorophyll~italic(a)~mu~g~cm^-2)) the axis label read as μ g cm^-2 because I have space there

Re: [R] Axes Alignment Problem for Multiple Plots

2011-04-20 Thread Barbaglia, Guido (ESA)
p@r-project.org Subject: Re: [R] Axes Alignment Problem for Multiple Plots Guido You missed William's e-mails, which solved the problem: use yaxs="i" in second call. Also, William made the good point that you can rather just use lines() in second call. Good William! Mat

Re: [R] Axes Alignment Problem for Multiple Plots

2011-04-20 Thread Matthieu Stigler
Best Regards Guido Barbaglia From: mat [matthieu.stig...@gmail.com] Sent: 19 April 2011 22:58 To: John Kane Cc: r-help@r-project.org; Barbaglia, Guido (ESA) Subject: Re: [R] Axes Alignment Problem for Multiple Plots Ok, I can replicate your problem, with

Re: [R] Axes Alignment Problem for Multiple Plots

2011-04-19 Thread Barbaglia, Guido (ESA)
to fix my problem! Best Regards Guido Barbaglia From: mat [matthieu.stig...@gmail.com] Sent: 19 April 2011 22:58 To: John Kane Cc: r-help@r-project.org; Barbaglia, Guido (ESA) Subject: Re: [R] Axes Alignment Problem for Multiple Plots Ok, I can replicate

Re: [R] Axes Alignment Problem for Multiple Plots

2011-04-19 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of mat > Sent: Tuesday, April 19, 2011 1:59 PM > To: John Kane > Cc: r-help@r-project.org > Subject: Re: [R] Axes Alignment Problem for Multiple Plots > &g

Re: [R] Axes Alignment Problem for Multiple Plots

2011-04-19 Thread mat
19. 04. 11 20:47, John Kane a écrit : What is Coredata(Z0)? It would be very useful. as the posting guidelines suggest to supply working code and sample data. --- On Tue, 4/19/11, Barbaglia, Guido (ESA) wrote: From: Barbaglia, Guido (ESA) Subject: [R] Axes Alignment Problem for Multiple Plots

Re: [R] Axes Alignment Problem for Multiple Plots

2011-04-19 Thread John Kane
What is Coredata(Z0)? It would be very useful. as the posting guidelines suggest to supply working code and sample data. --- On Tue, 4/19/11, Barbaglia, Guido (ESA) wrote: > From: Barbaglia, Guido (ESA) > Subject: [R] Axes Alignment Problem for Multiple Plots > To: "r-help

[R] Axes Alignment Problem for Multiple Plots

2011-04-19 Thread Barbaglia, Guido (ESA)
Dear all, I'm trying to plot, in the same window, two different series, using barplot() for the first one and plot() for the second. What happens is that the second chart has a different axes origin, therefore the final plot is wrong. This piece of code shows the differences between the val

Re: [R] Axes=F and plotting dual y axes

2010-07-28 Thread P Ehlers
Johnson, Cedrick W. wrote: That worked. Stupid me forgot that I had the stock ticker 'F' assigned in my workspace. Well.. guess I'll hit myself with a 2x4 now.. Thanks for your help guys.. No, don't do that. Instead, calculate how much time you saved by typing 'F' instead of 'FALSE' and how

Re: [R] Axes=F and plotting dual y axes

2010-07-28 Thread Johnson, Cedrick W.
That worked. Stupid me forgot that I had the stock ticker 'F' assigned in my workspace. Well.. guess I'll hit myself with a 2x4 now.. Thanks for your help guys.. -c On 07/28/2010 12:37 PM, Ben Bolker wrote: Johnson, Cedrick W. cedrickjohnson.com> writes: Howdy. Been running into a bit o

Re: [R] Axes=F and plotting dual y axes

2010-07-28 Thread D Kelly O'Day
Cedrick I used this script to produce a simple chart with no axes: series2 = c(1:50) series1 = rep(25:74) plot(series1, series2, main="Woo", col="red", xlab="", ylab="", axes=F, type="l") Works fine on Windows XP using R 2.11.1. -- View this message in context: http://r.789695.n4.n

Re: [R] Axes=F and plotting dual y axes

2010-07-28 Thread Ben Bolker
Johnson, Cedrick W. cedrickjohnson.com> writes: > > Howdy. Been running into a bit of trouble with plotting. Seems that > axes=F is not "working". Whenever I plot (either a dataframe or xts/zoo > series) and I set axes=F along with xlab/ylab="" I still get the default > axes printed in my cha

[R] Axes=F and plotting dual y axes

2010-07-28 Thread Johnson, Cedrick W.
Howdy. Been running into a bit of trouble with plotting. Seems that axes=F is not "working". Whenever I plot (either a dataframe or xts/zoo series) and I set axes=F along with xlab/ylab="" I still get the default axes printed in my chart. Consider this: #Create some sample data, both 50 units

Re: [R] Axes intercept

2010-07-01 Thread Gavin Simpson
:r-help-boun...@r-project.org] On > Behalf Of R. A. Bilonick > Sent: Wednesday, June 30, 2010 3:16 PM > To: r-help@r-project.org > Subject: Re: [R] Axes intercept > > On Mon, 2010-06-28 at 10:48 -0400, Robert Baer wrote: > > y=rnorm(100) > > x=abs(y) > > plot(x, y, ax

Re: [R] Axes intercept

2010-06-30 Thread Bert Gunter
: Re: [R] Axes intercept On Mon, 2010-06-28 at 10:48 -0400, Robert Baer wrote: > y=rnorm(100) > x=abs(y) > plot(x, y, axes=FALSE) > axis(1, pos=0) > axis(2) > box() It's nice to know that R tends to make nice graphics by default. But you can have R do not so great graphic

Re: [R] Axes intercept

2010-06-30 Thread R. A. Bilonick
On Mon, 2010-06-28 at 10:48 -0400, Robert Baer wrote: > y=rnorm(100) > x=abs(y) > plot(x, y, axes=FALSE) > axis(1, pos=0) > axis(2) > box() It's nice to know that R tends to make nice graphics by default. But you can have R do not so great graphics (like Excel and other programs that make really

Re: [R] Axes intercept

2010-06-28 Thread jim holtman
try: plot(..., axes=FALSE) axis(1, pos=0) On Mon, Jun 28, 2010 at 9:28 AM, KENT V.T. wrote: > I have a plot where the values of the y axis go from a positive number to a > negative number and I want the x axis to intercept at zero rather than at the > bottom of the y axis, regardless of its va

Re: [R] Axes intercept

2010-06-28 Thread Robert Baer
- Original Message - From: "KENT V.T." To: Sent: Monday, June 28, 2010 8:28 AM Subject: [R] Axes intercept I have a plot where the values of the y axis go from a positive number to a negative number and I want the x axis to intercept at zero rather than at the bottom of

[R] Axes intercept

2010-06-28 Thread KENT V.T.
I have a plot where the values of the y axis go from a positive number to a negative number and I want the x axis to intercept at zero rather than at the bottom of the y axis, regardless of its value. Can anyone help me to do this? Thanks in advance Vivien Vivien Kent MSc Oxon PhD candidate

Re: [R] axes limits in do3d

2010-02-23 Thread Jonathan Christensen
Hi, On Tue, Feb 23, 2010 at 4:03 AM, drlasher wrote: > > Does anybody know how to change the axes limits in do3d in made4? > > This is the code I have tried: > > do3d(sub, x=2, y=1, z=3, pch="+", > col="darkgreen", ylim=c(0,4), xlim=c(0,140) > ) > > But it doesn't seem to change the limits of t

Re: [R] axes limits in do3d

2010-02-23 Thread drlasher
ALso meant to say there are no warnings when I run the code as shown here. It just doesn't change the scale of the axes. -- View this message in context: http://n4.nabble.com/axes-limits-in-do3d-tp1565754p1565919.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] axes limits in do3d

2010-02-23 Thread drlasher
ALso meant to say there are no warnings when I run the code as shown here. It just doesn't change the scale of the axes. -- View this message in context: http://n4.nabble.com/axes-limits-in-do3d-tp1565754p1565920.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] axes limits in do3d

2010-02-23 Thread drlasher
Here is an extract from the data. It's data from a model. Social weighting varies from 0-1, Between Individual deviation from 0-140, Mean cluster score from 0-4. Social.Weighting Between.Individual.Deviation Mean.Cluster.Score 1 0 50.94769 1.4014520

[R] axes limits in do3d

2010-02-23 Thread drlasher
Does anybody know how to change the axes limits in do3d in made4? This is the code I have tried: do3d(sub, x=2, y=1, z=3, pch="+", col="darkgreen", ylim=c(0,4), xlim=c(0,140) ) But it doesn't seem to change the limits of the x and y axes as I would expect. I've also tried lab statements but

Re: [R] axes limits in do3d

2010-02-23 Thread Hrishi Mittal
What is your dataset? Can you provide a sample? Also, what errors or warnings do you get when you run your command? - Try http://prettygraph.com Pretty Graph , the easiest way to make R-powered graphs on the web. -- View this message in context: http://n4.nabble.com/axes-limits-in-do3d-tp1

Re: [R] Axes origins and labeling

2009-07-16 Thread Jim Lemon
Marlin Keith Cox wrote: I have re-labeled tick marks on the x axis. The problem is that by using axes=FALSE, the axes disappears and when they are called back using axis(side=1)..etc. the axis on sides 1 and 2 do not meet at the bottom left corner of the graph. I would also like to have the 3rd

Re: [R] Axes origins and labeling

2009-07-15 Thread S Ellison
Since you;re already specifying the axis tick locations for the x-axis any ylim for y, one way of dealing with it is to give the axes an extra tick at each end: Instead of axis(side=1, at=c(1,2,3,4), labels=gut) use axis(side=1, at=0:5, labels=gut) Similarly for axis(2), use axis(2, at=seq(0,250,

Re: [R] Axes origins and labeling

2009-07-15 Thread Greg Snow
..@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Marlin Keith Cox > Sent: Wednesday, July 15, 2009 2:44 PM > To: r-help@r-project.org > Subject: [R] Axes origins and labeling > > I have re-labeled tick marks on the x axis. The problem is that by > using >

[R] Axes origins and labeling

2009-07-15 Thread Marlin Keith Cox
I have re-labeled tick marks on the x axis. The problem is that by using axes=FALSE, the axes disappears and when they are called back using axis(side=1)..etc. the axis on sides 1 and 2 do not meet at the bottom left corner of the graph. I would also like to have the 3rd and 4th axes in there as

Re: [R] Axes in 3D plots

2009-03-22 Thread Daniel Moreira
,'x+-','x++','x-+','z--','y++')) hth, Daniel Moreira, MD Leah Gerber Sent by: r-help-boun...@r-project.org 03/22/2009 09:07 PM To r-help@r-project.org cc Subject [R] Axes in 3D plots I am wondering if anyone knows how to change or rotate th

[R] Axes in 3D plots

2009-03-22 Thread Leah Gerber
I am wondering if anyone knows how to change or rotate the default axes on a 3D scatterplot. I would like to change which sides of the cube the 3 axes are displayed on. Many thanks, Leah Gerber [[alternative HTML version deleted]] ___

[R] Axes crossing at origin

2009-03-15 Thread Markus Nenniger
Hi, I'm having a bit of trouble with the axes in my plots. I don't like the way R does not have them cross in the origin. Is there another plot/axis function? i tried using abline as suggested by someone from this list, but in my case this gives no satisfactory result, as the abline does sometimes

Re: [R] axes

2009-02-03 Thread Duncan Murdoch
On 2/3/2009 9:18 AM, Montserrat, Francesc wrote: Hello there, Is there a functionality or command that generates axes in the shape of a capital Greek letter gamma (upside down L) ? I use these for making sediment profiles. I have read through help-lists, tried different things and asked several

[R] axes

2009-02-03 Thread Montserrat, Francesc
Hello there, Is there a functionality or command that generates axes in the shape of a capital Greek letter gamma (upside down L) ? I use these for making sediment profiles. I have read through help-lists, tried different things and asked several people but never got a satisfactory result. I'

Re: [R] Axes limits in rgl.surface (again)

2008-10-08 Thread Duncan Murdoch
On 10/8/2008 2:28 PM, Kevin Wright wrote: An earlier post asked about limiting the z-axis range. I have the opposite problem. I need to expand the z-axis range in order to reduce the vertical relief on the surface plot (i.e. make it flatter). Any suggestions on how to do that? persp3d suppor

[R] Axes limits in rgl.surface (again)

2008-10-08 Thread Kevin Wright
An earlier post asked about limiting the z-axis range. I have the opposite problem. I need to expand the z-axis range in order to reduce the vertical relief on the surface plot (i.e. make it flatter). Any suggestions on how to do that? Kevin __ R-hel

Re: [R] Axes Labels on the Right side of lattice panel

2008-09-18 Thread Deepayan Sarkar
On 9/18/08, Saptarshi Guha <[EMAIL PROTECTED]> wrote: > Hello, > My plot has two curves on different scales. To create the scale on > the extreme right hand side of a panel > I followed the example in panel.axis (in this example, the tick marks > are at the same location and labels are t

[R] Axes Labels on the Right side of lattice panel

2008-09-18 Thread Saptarshi Guha
Hello, My plot has two curves on different scales. To create the scale on the extreme right hand side of a panel I followed the example in panel.axis (in this example, the tick marks are at the same location and labels are the same too) axis=function(side, ... ) {

Re: [R] Axes in filled.contour plots [Solved]

2008-08-17 Thread hippie dream
I should let you guys know that I figured this whole axes on filled contour plots issue out. This might not be the most elegant solution but it will work me: filled.contour(contour, axes=F, frame.plot=TRUE, color=terrain.colors, ylab= "Length Along Flume (m)", key.title = title(main="Velocity\n(m

Re: [R] Axes in filled.contour plots

2008-08-17 Thread hippie dream
Jim, Thanks so much for getting back to me. Axis.mult could definitely work so me although there still appear to be a couple hiccups. I've included a .png file of my plot rather than trying to explain it. I have for explanatory purpose not called to plot with "axes=F". This illustrates that the a

Re: [R] Axes in filled.contour plots

2008-08-17 Thread Jim Lemon
On Sat, 2008-08-16 at 14:28 -0700, hippie dream wrote: > I am still struggling on how edit axes on a filled contour plot. I have > managed to figure out how to place labels on the key of this graph but how > to place the axes I want on this plot still eludes me. This command produces > the plot I a

Re: [R] Axes in filled.contour plots

2008-08-16 Thread hippie dream
I am still struggling on how edit axes on a filled contour plot. I have managed to figure out how to place labels on the key of this graph but how to place the axes I want on this plot still eludes me. This command produces the plot I am looking for however as mentioned before these axes only go f

[R] Axes in filled.contour plots

2008-08-08 Thread hippie dream
I am attempting to create a contour plot using R with this code: > contour <- as.matrix(read.csv("contour.csv", row.names=1, header=TRUE)) > library(gplots) > filled.contour(contour, main="Flume 1 Flow Velocities") Now this produces the image/plot that I am looking for perfectly. However, the bo

[R] Axes in perspective plot - persp()

2008-07-30 Thread David Afshartous
All, I'm making some plots with the persp() function and am having trouble sorting out the following: - How does one avoid the axes label overlapping the tick values? - Is doesn't seem possible to independently control the number of ticks of the x,y, and z-axes, e.g., I'd like say only 4 ticks

Re: [R] Axes in polymars

2008-03-05 Thread Gavin Simpson
On Wed, 2008-03-05 at 15:32 -0500, Shewcraft, Ryan wrote: > Hi All, > > I can't quite figure out how to change the parameters of the x and y > axes when I plot a polymars object. I want to add a scatterplot of the > data points, but the polymars plot seems to automatically set the > parameters to

[R] Axes in polymars

2008-03-05 Thread Shewcraft, Ryan
Hi All, I can't quite figure out how to change the parameters of the x and y axes when I plot a polymars object. I want to add a scatterplot of the data points, but the polymars plot seems to automatically set the parameters to fit the polymars line. I've tried using plot(poly,1,fig= c(x1,x2,y1,

Re: [R] Axes limits in rgl.surface.

2007-12-17 Thread Duncan Murdoch
On 12/17/2007 2:29 PM, Todd Remund wrote: > I have looked through the documentation and have not been able to find a way > of using an xlim, ylim, or zlim type option on rgl.surface. I know that > persp3d has the option, but seems to only be able to expand the axes not > reduce them. Is there

[R] Axes limits in rgl.surface.

2007-12-17 Thread Todd Remund
I have looked through the documentation and have not been able to find a way of using an xlim, ylim, or zlim type option on rgl.surface. I know that persp3d has the option, but seems to only be able to expand the axes not reduce them. Is there anyone who has an idea of how to do this? Thank