Displaying 20 results from an estimated 7000 matches similar to: "change y axis "distance""
2018 May 07
2
Adding Year-Month-Day to X axis
Jim,
Thank you very much!
How do I use the axis command for side=1 to label the x horizontal axis, in the format="%Y-%m-%d? style?
Greg
y_duration <- c (301.59050, 387.35700, 365.64366, 317.26150, 321.71883, 342.44950, 318.95350, 322.33233, 330.60333, 428.99516, 297.82066, 258.23166)
x_yyyymmdd <-as.Date(c ("2018-04-25", "2018-04-26",
2018 May 06
2
Adding Year-Month-Day to X axis
Jim,
That you very much!
How do I instruct staxlab to label once every n days, rather than labeling every day?
Greg
> On May 5, 2018, at 6:50 PM, Jim Lemon <drjimlemon at gmail.com> wrote:
>
> staxlab(1,at=x_yyyymmdd,labels=format(x_yyyymmdd,"%Y-%m-%d"))
[[alternative HTML version deleted]]
2018 May 06
0
Adding Year-Month-Day to X axis
Hi Greg,
By default, the "axis" function puts the labels on one line and drops
labels that would overlap. When you have labels that are all the same
length, this usually results in every second, or third, or fourth
label being displayed. So you can probably get what you want by not
using staxlab. However, if you really want to use staxlab, try this:
2005 May 25
1
Plot: Distance between tick and tick label on y-axis
Hello,
I want to reduce the distance between my ticks and their labels. I managed
to do it for the x-axis, but the y-axis puzzles me. Here's an example where
there is no space between the x-asix ticks and labels.
par(las=1)
plot(runif(50), type="l",xaxt="n",yaxt="n",ylab="", bty="l")
axis(2)
axis(1,padj=-1.5)
#However,
axis(2,padj=-1.5)
2009 Sep 23
2
Stretch the x-axis for better alignment comparison
I have the following code that aligns the two graphs.
Problem is that in .pdf it gives me it x-axis (0-100) is broken down
into 0-20, 20-40..and so on.
I wonder if there is for it to display the x-axis (and y-axis) in more
detail than that.
I'd appreciate your input --
pdf(file="VECTOR & ICA ALIGNMENT.pdf", height=5, width=5)
2012 Nov 06
3
Survplot, Y-axis in percent
Hi
I am a new fan of R after getting mad with the graphical functional in SPSS.
I have been able to create a nice looking Kaplan Meyer graph using Survplot
function.
However I have difficulties in turning the y axis to percent instead of the
default 0-1 scale.
Further I have tried the function yaxt="n" without any results. Any help in
this matter will be appreciated.
The code is
2012 Nov 12
8
no y-axis
HI @ all,
I'm looking for a simple solution to supress the y-axis - but only the drawn
scale - not the values.
Only the numbers should be displayed.
I tried yaxt="n" but there everything of the y-axis is supressed.
Thanks
GeO
--
View this message in context: http://r.789695.n4.nabble.com/no-y-axis-tp4649298.html
Sent from the R help mailing list archive at Nabble.com.
2002 Nov 27
2
Leaving out graduations and numbers on y axis plot
Hi all,
I want to use a fourth plot on a page as a "map" of how to interpret
the previous three plots - so the x axes are all the same but I want
the y axis on the fourth plot to have no graduations or numbers - is
this possible?
I had a look in Peter's book and the help stuff but couldn't see
anything.
Thanks,
Phil.
--
Philip Rhoades
Pricom Pty Limited (ACN 003 252
2006 Jun 09
1
Rotate values on Y axis
Hi,
I have been working through one of the examples on the FAQ about
rotating the labels on the x axis, I need to do the same but for the y
axis. I have managed to change some of the code, but I am still not
getting there, there is still something wrong. My syntax is as follows:
> par(mar = c(5, 7, 4, 2) + 0.1)
> plot(1 : 8, yaxt = "n", ylab = "")
> axis(2,
2007 Mar 22
1
Labelling a second y-axis
Hi,
I am using the following code as an example function to create
multiple y-axes on one plot. I have it working fine however, I can't
seem to add a label on the second (right) axis. I have tried adding
ylab="y2" in the axis call but, that didn't work; any ideas?
Thanks,
Jesse
Code:
function() {
par(las=1,xaxs="r",mai=c(1,0.75,1,1))
x<-1:10
y1<-x
2009 Dec 03
2
Formatting of numbers on y axis
Hello all. I have the following:
plot(salaries$yearID, salaries$salary, type='n', xaxt='n', xlab='',
yaxt='n', ylab='')
axis(1, at=unique(salaries$yearID), labels=unique(salaries$yearID), lwd=.25,
tck=-0.05)
axis(2, axTicks(2), format(axTicks(2), scientific = F))
Which nicely creates the Y axis with the raw numbers, which are in the range
of .5 - 7
2013 Sep 20
1
Is there a way to change x and y axis tick mark inside plot()?
Dear R community,
I am having trouble changing the tick marks on y-axis to every 5 units? I
have the following:
x <- c(12, 16, 6, 23, 27, 8, 5, 19, 23, 13, 16, 8)
y <- c(29, 29, 23, 34, 38, 24, 22, 34, 36, 27, 33, 27)
plot(x, y, pch=19)
Should I change ylim=c(0,40), and then use axis()?
I kept on thinking I can do everything inside plot(), but there is actually
axis(), par(), ..., and
2005 Jun 29
3
plot (log scale on y-axis)
I am planning to plot my data on log scale (y-axis). There is a
parameter in plot function, which is
plot( ..., log="y", ...)
While, the problem is that it is with base of e. Is there a way to let
me change it to 10 instead of e?
Thanks
2018 May 05
0
Adding Year-Month-Day to X axis
Hi Greg,
What you are getting there is a factor, interpreted as a 1:n sequence
based on the sort order of your "dates". Here's a way to get dates on
your x-axis in the format you want:
x_yyyymmdd<-as.Date(c("2018-04-25","2018-04-26","2018-04-27",
2011 Nov 16
3
plotting a double y axis when x and y lengths differ
Hello All,
Many thanks to the help I have received so far.
Here is an example data set I hope to plot
Data1
Year Data SE
1 2005 2 0.01
2 2006 4 0.01
3 2007 5 0.01
4 2008 2 0.01
5 2009 3 0.01
6 2010 6 0.01
Data2
Year Data SE
1 2006 32 1
2 2007 100 2
3 2008 60 4
4 2009 67 3
5 2010 8 1
Notice Data2 has one less years worth of data than Data1 (which is my
2009 Sep 14
1
How do I ensure that the minimum value is always displayed on a y-axis in a plot?
Good day all,
I'm trying to plot a figure and ensure that the minimum and maximum
values are always displayed. However, the code below does not display
the minimum value, no matter what I try. Could someone please help?
Thanking you in advance,
George.
Code below for reproduction (apologies if the paste is too long)
>blah
[1] 0.41955516 0.37330949 0.37934005 0.38013805 0.40092939
2011 Jan 20
1
Scale of 2nd y-axis
Dear list,
My query follows on from a question I posted a few days ago. I have the following 2 sets of data:
wetMeans[1] 9.904762[2] 6.344828[3] 6.346154[4] 6.855769[5] 9.074324[6] 9.953988[7] 13.482966[8] 14.546053[9] 10.841584[10] 9.752033[11] 6.739336[12] 8.955056burnMeans[1] 0.06214286[2] 0.05396552[3] 0.04096154[4] 0.05302885[5] 0.05831081[6] 0.07392638[7] 0.29969940[8] 0.25596217[9]
2004 Oct 26
1
2nd Y-axis text problem
Dear All,
I'm having problems getting text to appear on a second y axis....because
this can only be done within a plot statement and my attempts to add the
label as text didn't work because the "locator" refers to the plot
area....
Any thoughts greatly appreciated.
Thanks in advance,
Sion
>par(mai=c(1,1,1,1.5))
>plot(time[DOY<230],Hmeas[DOY <
2001 Jul 14
1
Secondary y-axis
Dear R Users,
I have been trying to add a secondary y-axis to an existing plot. I thought
this could be a trivial matter and have checked the Manual and Mailing List
Archive to see If I can find a solution.
It appears the suggested method by Uwe Ligges (fot from the Archive) did not
work. I am getting an error message saying the "Error in plot.new() : axis
style "d"
2008 Mar 21
1
hist function+label second y-axis
Dear Forum,
hist(x$LAN_3,col="green",xaxt='n',yaxt='n',xlab="",ylab="",main="",type="l")
I?d like to craete a line not a bar in the hist function, but regrettably I
get only warning messages:
1: Grafikparameter "type" ist veraltet in: title(main, sub, xlab, ylab,
line, outer, ...)
2: Grafikparameter "type" ist