Displaying 20 results from an estimated 30000 matches similar to: "Wanted: your examples of logged axes with custom tick marks"
2000 Oct 26
0
summary for tick marks
Dear R People:
In case anyone is interested, here are some of the answers
I received regarding tick marks:
plot(0,0)
axis(1, pos=0)
axis(2, pos=0)
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45)
1999 Jul 27
0
tick marks and layout
Hi, all.
Layout seems to put tick marks only in the leftmost column (for the y
axis) and bottom row (for the x axis). This is easy to see using the
following trivial program:
function (nr, nc) {
layout(matrix(1:(nr * nc), nr, nc))
for (i in 1:(nr * nc)) {
plot(rnorm(10), rnorm(10))
}
layout(matrix(1, 1, 1))
}
I'd like to be able to override this behavior and
2010 Jun 09
1
minor tick marks
Hi !
I need a plot for data extending over several orders of magnitude on the y axis.
The following command generates a nice looking semi-log plot for my data:
plot(x,y,log="y",type="l",lty=3, ylim=c(0.01,2),yaxp=c(0.01,1,1),las=1)
I would appreciate having also minor tick marks in-between the 3 major ticks obtained with the above command. The "minor.tick" function
2004 Sep 17
1
thickness of tick marks
Hi,
I am unable to get the tick marks to appear thicker in plot. I have
tried things like
par(lw=2) but this only seems to affect other line thicknesses.
The use of axes directly fixes the problem because lw = 2 applies to
both the axis and the ticks.
Is there is way of feeding a single parameter to plot or setting a par
parameter to do this?
I am using R 1.9.0 on a windows 2000 platform.
2008 Jun 16
2
in axis() suppressing axis line but keeping tick marks
I've been trying to figure out a parameter that will let you separately
adjust the parameters for the axis line from the tick mark.
In the following example, I would like to suppress the axis line, but keep
the tick marks.
Thanks,
Andrew
foo <- data.frame(x=1:3, y=4:6)
plot(foo$x, foo$y, type="n", axes=F)
points(foo$x, foo$y)
axis(side=1, at=foo$x, lty=0) #would like to figure
2003 Oct 06
3
tick marks: 0, 12, 24, 36 ...
Dear R-help list,
I have a problem with the tick marks of a Kaplan-Meier survival plot.
Here is a sample:
follow.up<-c(10,20,30,40,50,60,70,80,90,100) #months
dead<-c(1,1,1,0,1,1,0,0,0,0)
KM <-survfit(Surv(follow.up, dead))
plot(KM)
The result is a nice plot. However, our research group thinks it may be
a better idea to place the ticks to the years on the time scale, i.e. 0,
12, 24, 36
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
2010 Feb 02
0
Plot questions: grid line do not correspond to tick marks and 2 line axis label
Hello list,
Thank you very much for replying to my earlier questions. I have a few new
questions about R plots:
Example: tempdata:
RDate Price
2009-12-09 12:00 100
2009-12-09 15:00 99
2009-12-09 18:00 102
....
2009-12-10 8:00 120
2009-12-10 10:00 110
2009-12-10 16:00 105
My code: (RDate already in R date-time class)
plot (price~RDate, data=tempdata, "l")
axis.POSIXct(1,
2004 Sep 01
1
Tick marks in cloud (lattice)
Hi! Probably a simple question, but I can't get any tick marks in the 3d
scatterplot I created using the cloud function.
The following works to display the three groups using different symbols:
data(iris)
cloud(Sepal.Length ~ Petal.Length * Petal.Width, data = iris, cex = 1.2,
groups = Species, pch = c(16,1,1), col = c("black","black","red"),
subpanel =
2000 Oct 26
3
Tick marks for abline
Dear R People:
I am drawing graphs for a College Algebra class. I would like to have
the x and y axes, along with the lines that I am plotting. So I leave
off the axes, and use xlim and ylim. Then I add my abline(v=0).
However, I would like to have tick marks on the abline. How would I do
that, please?
Thanks in advance!
Sincerely,
Erin M. Hodgess, Ph.D.
Associate Professor
Department of
2025 Jan 21
1
ggplot with major and MINOR tick marks on a log scale
?s 02:18 de 21/01/2025, Sorkin, John escreveu:
> I have used ggplot to create a graph on which the y-axis is on the log scale. (see data and code, below.) I would like to add minor tick marks, which will also be on the log scale. The data and code are below. I hope somone can tell me how I can modify the ggplot code so it produces minor tick marks on a log scale.
> Thank you,
> John
>
2007 Feb 18
0
Lattice graphics: minor tick marks and panel.axis() question(s)
Hello,
I have been a long-time Traditional graphics user and now moving to
try Lattice graphics. At the moment I cannot figure out how to place
minor tick marks in a figure made with Lattice's xyplot(). In
Traditional graphics, after calling plot() I would make two calls to
axis().
>From the manuals and help documentation I learned that 'scales' takes
multiple 'at'
1999 Feb 16
1
Missing tick marks bug on alpha solved
On some systems (alpha), tick marks don't appear on plots. The easiest
way to see the problem is something like:
> plot(0:1,axes=FALSE)
> axis(1,1:2)
The problem is in X11_Line(...) from .../src/unix/devX11.c, which is
so short I've included the whole function below:
static void X11_Line(double x1, double y1, double x2, double y2,
int coords, DevDesc *dd)
{
2010 Nov 20
1
Removing tick marks and Adding labels to lattice plots
Hi all,
I am trying to remove the current labels of the tick marks and replace them
with text using xyplot within lattice
right now I have tick marks at 1, 1.5, 2, 2.5, 3 I would like to transform
them to say 'T1', 'T2', 'T3'
thanks in advance
Kathleen
--
View this message in context:
2009 Nov 25
1
tick marks on fold change versus fold change plot
Dear R users,
i try to produce the fold change versus fold change plot
where i have the values for x and y ranging from 0.01 to
100. So i start with
plot(x,y,xlim=c(0.01,100),ylim=c(0.01,100), axes=F).
Then i would like both axes to have tick marks as
c(0.01,0.1,1,10,100) but they should appear equidistant.
How should i manage this?
Thank you for your help,
Alla.
2011 Feb 04
1
Suppress only Z axis tick marks and numbers in wireframe statement
I actually have several questions revolving around the generation of
wireframe plots.
The most pressing is that which is described by the subject line.
I am trying to produce a figure with x, y, and z labels, but only tick marks
on the x, and y axes. I have supplied sample code below substituting the
volcano data set for my own such that you may run the code and see the
results.
2010 Dec 26
1
lattice splom: how to adjust space between tick marks and tick labels?
Dear expeRts,
how can I decrease the space between the tick marks and the corresponding labels in an splom?
See here:
library(lattice)
U <- matrix(runif(4000), ncol = 8)
splom(U, axis.text.cex = 0.2) # => space between the [small] tick labels and tick marks is/seems to be too large
I checked ?panel.pairs but could not find an option for that.
Cheers,
Marius
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
2009 Jun 01
1
Minor tick marks for date/time ggplot2 (this is better, but not exactly what I want)
library(ggplot2)
melt.updn <- (structure(list(date = structure(c(11808, 11869, 11961, 11992,
12084, 12173, 12265, 12418, 12600, 12631, 12753, 12996, 13057,
13149, 11808, 11869, 11961, 11992, 12084, 12173, 12265, 12418,
12600, 12631, 12753, 12996, 13057, 13149), class = "Date"), site =
structure(c(1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L,
2L, 2L, 2L, 2L, 2L,
2000 Aug 30
1
Bug with tick marks on x-axis.
Hi,
I have a dataset where we are trying to model the resistance of
horses' lungs. One of the covariates is the administered
pressure. This variable is a little odd in the sense that an increase
of pressure corresponds to a "more negative value" of the covariate. A
graph representing the change in resistance in function of the
pressure would be helpful for the biologist. But it