Displaying 20 results from an estimated 5000 matches similar to: "Getting tick positions"
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
2005 Oct 08
1
how to control ticks in plots with yasp or xasp
Hi,
A few times I tried to control the number and position of tick marks
in plots with the yasp or xasp parameters. For example, a y axis was
drawn by default with tick marks at 0, 20, 40, 80 and 100. I tried to
get tick marks every 10 by adding
yasp=(0, 100, 10)
but this had no effect at all. I know I can draw the axis and tick
marks manually, but often this simple option would suffice
2004 Apr 15
1
pretty for a log-axis
Is there a function that does the same as pretty but on a log-scale?
Suppose you have
x <- exp( runif( 100, 0, 6 ) )
(which will between 1 and 403), then I would like to have a result like:
log.pretty( x )
[1] 1 5 10 50 100 500
Bendix C.
----------------------
Bendix Carstensen
Senior Statistician
Steno Diabetes Center
Niels Steensens Vej 2
DK-2820 Gentofte
Denmark
tel: +45 44 43 87 38
2003 Dec 11
2
returning plot tick marks
Is there an easy way to return the values of the axis tick marks resulting from plot.default? For example, plot(1:1000) would return 0, 200, 400, 600, 800, 1000 from the x axis.
Thanks,
Max
---------------------------------
[[alternative HTML version deleted]]
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
2010 Jul 18
3
R graphic help
Dear All,
I've done some searching, but to no avail --
I'm plotting x-y data via the "plot" command, and the "log=x" command.
The graphed x values are in scientific notation (1e-02 1e-01 1e+00 etc).
Might you have some idea on how I can get the plot to uses the x values
(0.01 0.10 1.0 10.0 etc) instead? A related Q - where might a good place to
search for such
2006 Nov 16
6
Gantt chart problem after upgrade to R 2.4.0
I am having a problem with a gantt chart since
moving to R2.4.0. from 2.3.1
I made some adaptations to the code from
http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=74
and successful produced a simple gantt chart. However
when I upgraded to 2.4.0 it no longer works as
desired. See
http://ca.geocities.com/jrkrideau/R/gantproblem.pdf
for the two charts. The charts were produced
2010 Aug 24
1
tick marks on both sides of axis
hello,
all my attempts to get a plot with tick marks on both sides of axis failed -
can someone please help me with this?
thanks,
kay
-----
------------------------
Kay Cichini
Postgraduate student
Institute of Botany
Univ. of Innsbruck
------------------------
--
View this message in context: http://r.789695.n4.nabble.com/tick-marks-on-both-sides-of-axis-tp2336668p2336668.html
Sent from the
2001 May 29
2
format for tick labels
Running R 1.2.3, Windows 98
I checked the archives, and I couldn't find anything pertaining to this:
How do I control format (scientific notation versus decimal, e.g.) on tick
labels?
TIA,
Henry
Dr. M. Henry H. Stevens
Postdoctoral Associate
Department of Ecology, Evolution, & Natural Resources
14 College Farm Road
Cook College, Rutgers University
New Brunswick, NJ 08901-8551
email:
2005 Aug 14
1
Labels on axes with log scales with lattice
I using lattice to make some plots and I want to make the y-axis on
some of these plots use a log scale. In the following plot:
x <- 1:10
y <- 2^x
xyplot(log10(y) ~ x)
I get tick marks on the y-axis at 0.5, 1.0, 1.5, 2.0, 2.5, and 3.0. I
would rather have just 3 tick marks at 1.0, 2.0, and 3.0 but labeled
10, 100, and 1000.
I know this can be done using the "at" and
2007 Nov 30
2
Organising tick-marks in plot()
Hi Folks,
I'm advising someone who's a beginner with R,
and therefore wants the simplest answer possible.
The issue is to produce a plot using
plot(x,y,...)
where, on the X-axis, the tick-marks should be
on the lines of:
-- Range of X-axis: 0:1000
-- tick-marks labelled "0","200",...,"800","1000"
-- unlabelled tick-marks every 50 from 0 to
2004 Dec 29
1
Question about setting tick mark limits in Plot
Dear R-list,
I am having trouble getting the Plot function to set the tick marks the
way I want, and I am not sure what I am doing wrong.
Below is the code that I wrote, and I am not sure why it doesn't work.
p is a vector of length 2198, containing numbers between 0 and 240. q
is a vector of ones, the same length as p. I want the x-axis to have
tick marks every 30 min and I want the
2009 Jan 30
3
identifying what labels have been created in a plot
Colleagues
R 2.8.0; OS X, Vista, Ubuntu Linux
In some instances, when I create a graphic using plot(XVAR, YVAR), it
would be valuable to know the values that R will display on the y-axis
(e.g., if the range of data is 0-70, it might display 0, 10, 30, 50,
70). Is there a simple means to access these values?
Also, in some instances, additional ticks appear between the displayed
values
2011 Aug 18
1
Where are the ticks on grid.xaxis?
Hi R list,
I like the default ticks that are set up using grid.xaxis() or grid.yaxis()
with no arguments. Finding good values for the 'at' argument is usually not
a trivial task; the default behavior of these functions seems to work well.
The problem with this strategy is that I cannot figure out how to "recover"
the positions of these ticks when you do NOT specify the
2010 May 15
2
Normalizing plot tick values
Hi,
I have a plot whole tick values along the axis have a certain range 0 - x .
I need to normalize this range without changing my data files. for e.g.,
if my plot has tick values at 10,20,30,40,50... i have to make this 2,4,6,
etc. but without changing the plot data... I am hoping I can add something
to the plot command that goes like tick values divided by a quantity.
Any help is appreciated.
2010 Aug 24
2
how do R calculates the number of intervals between tick-marks
Hello,
I want to know how do R calculates the number of intervals between
tick-marks in the y axis in a plot.
I'm making a three y-axes plot and this information would help me a lot.
Thanks in advance.
Antonio Olinto
----------------------------------------------------------------
Webmail - iBCMG Internet
http://www.ibcmg.com.br
2000 Nov 05
2
hello
Hello,
I am a new user.
I would like to know if it is possible with R to fix the position of
ticks.
for example for my plot I obtained automatically the positions
200,400,600,800 and 1000 on x axis and so a scale of 200
But I would like to obtain
100,200,300,400,500,600,700,800,900,100 so a scale of 100.
Which fonction can help me to do so?
thank you
meriema
2009 Aug 24
3
error in creating gantt chart.
hi every one,
i have a excel sheet like this
labels starts ends
1 first task 1-Jan-04 3-Mar-04
2 second task 2-Feb-04 5-May-04
3 third task 3-Mar-04 6-Jun-04
4 fourth task 4-Apr-04 8-Aug-04
5 fifth task 5-May-04 9-Sep-04
now i converted this excel sheet into csv file and i read the csv file into
R with the below code.
my.gantt.info<-read.csv("C:/Documents and
2002 Aug 20
2
Reset par(xaxp) in plot
R-Helpers;
This seems simple to set graphic parameter, but I tried plot a graph
with 10 intervals in x axis with par(xaxp = c(0, 150, 10) but to no avail:
par(xaxp =c (0, 150, 10))
plot(age, y18, type="n", ylab="Height (m)", xlab=" age (Yrs)", font
= 2)
lines(age, y6, lty = 4, lwd = 2)
lnes(age, y10, lty = 1, lwd =2)
lines(age, y14, lty = 2, lwd =2)
2002 Jun 04
4
par(xaxp)
I think this is a bug; at least this behavior is not documented in plot
or plot.default.
plot.default resets xaxp, and leaves xaxp reset when it exits:
par(xaxp=c(0,1,4))
print(par("xaxp"))
plot(c(0,1),c(0.2,0.3))
print(par("xaxp"))
R. Woodrow Setzer, Jr. Phone:
(919) 541-0128
Experimental Toxicology Division