similar to: get plot axis rounding method

Displaying 20 results from an estimated 20000 matches similar to: "get plot axis rounding method"

2007 Aug 02
2
y axix number into horizontal direction
Dear R users, I used plot() and mtext() functions to draw a plot. The numbers: 0,20,35, 40,60,80,100 were in the vertical direction. I'd like to transfer them into the horizontal direction. plot(0,0,xaxt="n",type="n", ylim=c(0,100)) mtext("35",side=2,at=35) Any suggestion? Thanks. Rebecca [[alternative HTML version deleted]]
2003 Sep 01
2
Axis color
Hello, my question is if I have two axes in a graphics as I can put him a different color al axis and to the number of the scale. ? Thanks. Ruben
2009 Apr 15
1
Lattice xyplot with text under x-axis
Hi All, I have a data set which I need to plot and show the values of one of the variables as a second x-axis. library(lattice) year<-c(2001,2002,2003,2004,2005,2006) fac<-c("arts","arts","arts","sci","sci","sci") staff<-c(95,98,99,32,31,36) part<-c(32,31,33,15,16,14) df1<-data.frame(year,fac,staff,part)
2010 Jul 17
1
Bug 14340 - Symbols() plots with wrongly scaled y-axis
Hello, I submitted this bug report to r-core and got a rejection saying I should post to r-help. This is my first time ever submitting a bug report, so forgive me if I'm using some wrong format. So, here's my bug report: Component: Graphics OS: Mac OS 10.5.8, X11 XQuartz 2.5.0 Summary: In the symbols function of the graphics package, scaling of the y-axis is wrong, causing symbols
2003 Aug 06
2
Plot ticks and tick labels: thickness, colour?
I am displaying several series in one plot, and would like to make them distinct without having to employ a legend. I managed to color tickmarks, but have been unsuccessful with either one of a) making tickmarks thicker (without increasing the axis at the same time). From reading ?axis: lty, lwd: line type, width for the axis line and the tick marks. in would appear that I cannot
2001 May 24
1
Labels perpendicular to axis
I would like to make my horizontal barplot vertical axis labels perpendicular to the axis. I tried las=1, srt=90; I even tried yaxt='n' thinking I'd put the labels in using mtext, but the axis continued to be drawn. Can anyone help me with this? My barplot() statement looks like this: barplot(height=foo$rebint[o1], names=foo$Unit[o1], horiz=TRUE, col=mycolors[foo$type[o1]],
2004 Aug 19
3
mtext adj= wrong with several las= (PR#7188)
Dear all, Our quite basic function mtext() does wrong adjustments in some parameter configurations. This gets obvious when using multi 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))
2005 Jan 19
1
forcing all tick labels to plot
I'm trying to find a way to force all the x-axis tick labels to plot, regardless whether or not they overlap or look pretty. V is a factor with, say, 4 levels. A call to plot(V) gives a histogram-like plot, one bar for each level in V. The problem is that all the label names may not be plotted because some of the names are lengthy and would tend to overlap if plotted. I don't care
2004 Feb 24
5
r: plots
hi all i have another probably simple question. I have three variables say x, y and z. x and y are quite large and z is relative small. how can one plot the three variables on the same graph with two separate axis? (one for x and y and the other for z) e.g. x<-c(101,110,150,167,120) y<-c(120,135,175,95,200) z<-c(0.001, 0.15, 0.6, 0.8, 1) regards Allan
2001 Jun 27
1
las=1 with log axis (PR#997)
This just came in: plot(c(0.1,100),log="y", las=1) (Numbers and tick marks are unaligned) Same thing with mtext(), try mtext("x",2,at=0.1) mtext("x",2,at=0.1,las=1) --please do not edit the information below-- Version: platform = i586-pc-linux-gnu arch = i586 os = linux-gnu system = i586, linux-gnu status = major = 1 minor = 3.0 year = 2001 month = 06
2010 Dec 17
1
Define absolute size of tick and axis labels in basic plots
I am currently submitting final copies of graphics to a journal for publication and they are asking that the fonts used in the plots are times new roman and 10 pt. I set the font size when I call the graphics device and in the par statement to 10. However, when I create a plot, the tick labels and axis labels are not 10 pts. I know I can use the cex commands to scale the fonts, but is there a
2011 Nov 24
1
Horizontal Y axis title above the y axis
Dear R-help team I have tried hard to turn my Y axis 90 degrees, so that it is written horizontally, and placing it above the Y axis, but I did not succeed. I have tried to adapt the following functions: - plot() - title() - mtext() And some more that did not prove to be useful (e.g. text() etc). The closest I got to my aim was with mtext(): mtext("Yield
2001 Feb 01
3
Rotated mtext
I seem to remember this coming up before, but I can't find it any messages I've saved or in the archives (searching by subject). I want to rotate mtext so that it's perpendicular to the right side. I tried srt=90 and lots of other values, but it seems to be ignored. Is there a way to do this? ______________________________________________________________________ Stuart Luppescu
2002 Jul 15
1
mtext
Is there some way to make mtext horizontal along the vertical axis? Can I use mtext numerous times for one graph (created using symbols(...)) so that at the right of each graph there is a list of numbers along the axis? I have two graphs on the same page and would like to have a list of identifying numbers next to each circle of the graph. Does anyone know of a way to do this? Thanks, K
2012 Sep 02
2
Impact of cex changing as a function of mfrow
R 2.15.1 OS X (MLion) Colleagues, I am aware that changes in mfrow / mfcol in par() affect cex (from help: In a layout with exactly two rows and columns the base value of ?"cex"? is reduced by a factor of 0.83: if there are three or more of either rows or columns, the reduction factor is 0.66). I generate a multipage PDF in which mfrow varies such that cex is impacted. This affect
2010 Mar 28
1
Fwd: col.axis
I need a help in the following code. I could not find any hint at the help files m <- c( 58, 47, 51, 57, 48) plot(1:5, m, pch=19, col=1:5, axes=FALSE) axis(1, at=1:length(m), labels=LETTERS[1:5], col.axis=2) The labels A B C D E appear in this case with the red color. What I really want is that thay get the same color as the circles, but if I try the line axis(1, at=1:length(m),
2004 Mar 25
1
How to add a top X-axis with a different logarithmic scale?
Hi, I am trying to put on one plot two different logarithmic scales, using the bottom and top X-axes. Below there is an example of what I am trying to achieve, using axTicks() -- and fails. I already spent few hours on that, and cannot figure out from ?par and ?axTicks what I am doing wrong. Example follows: ############################################################ #### Data x <-
2000 Nov 07
2
par(las=.) gives wrong "adj" for mtext() (PR#726)
For R Version 1.1.1 and R-devel (Linux)... Sorry, there's no time to fix myself now {e.g., after starting a new device} : par(las=3); plot(1:10); par(las=1) ; mtext("mtext") Gives a left-adjusted (as for adj = 0) mtext, even if par("adj") is still 0.5 Note that I'm also not convinced that mtext() should follow par("las") as it does in the
2005 Jun 28
2
axTicks on a reverse ylog plot (PR#7973)
There is still issues with the reversed y-log scale plot: # Test case A: works as expected plot(10:100,log="y",ylim=c(100,11)) grid() par("yaxp") # Test case B: grid does not have horizontal lines; par("yaxp") is different plot(1:100,log="y",ylim=c(100,10)) grid() par("yaxp") In the second test case, axTicks for the horizontal lines (in
2006 May 15
1
Trying to get values to display on horizontal barchart
Hello, R 2.3.0 Windows XP I have spent quite a bit of time trying to resolve my problem below, which included a R site search. The "vertical bars" syntax below produces a vertical bar chart with the values displayed above each bar. I want to cast this graphic horizontally, but I have not been able to arrive at a suitable outcome. The best I have been able to do, using the second block