Displaying 20 results from an estimated 10000 matches similar to: "Axis line not appearing with axis(tick=FALSE) (PR#8998)"
2008 May 05
2
axis and tick widths decoupled (especially in rugs!)
Hi!
(a complete newby, but will not give up easily!)
I was wondering if there is any way to decouple the axis and tick mark
widths? As I understand they are both controlled by the lwd setting, and
cannot be controlled independently? For example I might want to create major
and minor ticks, which I now know how to do by superimposing two axes with
different at settings, but what if I also wanted
2011 Dec 13
2
axis tick colors: only one value allowed?
Hi,
So far as I can tell, the 'col.ticks' parameter for axis() only uses the
first value provided. E.g.:
plot(0:1,0:1, col.ticks=c('blue','red','green')) #all ticks are blue
Just wondering if there's a different option in the basic plot commands
that can handle multiple colors, and also whether ggplot and/or lattice
allow for multiple tick colors.
2007 Nov 20
2
Logarithmic axis
Hi there,
I guess this must be a standard issue, but I'm starting to go crazy with it. I
simply want a plot with the x axis being logarithmic, having labels 1, 10,
100..., and ten unlabelled ticks between each of them - just as they
introduce logarithmic axis at school. I've played around a bit with log="x",
xlog=T (where exactly is the difference here?), xaxp, and xaxt
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:
2007 Aug 30
2
Additions to xyplot (lattice)? - legend, ticks, axis label size, text
I have created an xyplot of a time series with the following code...
win.graph(width = 10, height = 7)
panel1 = function(x, y) {
panel.loess(x, y, lwd=2.5, span=0.5, col="gray")
panel.xyplot(x, y, pch=19, col="blue", cex=1.25)
}
xyplot(oneplusdensity ~ year, data=figdata, aspect="fill", cex=1.5,
xlab=NULL, ylab=expression("Crabs per
2006 Oct 31
1
[ggplot] controlling axis and major/minor tick marks
Hello there!
I'm starting with ggplot and was wondering how I could control the axis
of a plot. I would like the axis of the plot to be drawn black which I
thought to acheive with the option axis.colour="black". However, this
had no real effect on the plot. Then I found grid.colour which I changed
to black as well. Now I got my axis as I wanted them, but ggplot now
draws the grid
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
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
2011 Dec 16
1
problem with tick graph
Dear all,
I'm having problems with the tick of my graph. I'mpcombining lines and
barplot.
For my I'm using the function axis combined with the function pretty to have
more efficient tick, but all my tick (for example, 300 as my max tick and -100
as my min tick) are not printed on my graph.
So I would like to have for the left axis the seq from 0 to 100 (with 0 and
100 printed on
2011 Jul 25
2
Lattice: distance of tick labels from axis line
Hi, I am doing fine editing on a lattice plot, now have the Y-axis title in
the correct position, but the tick labels are too far from the axis line. I
looked at the help documentation but could not find how to change this. This
seems to be easy to do in basic plots with "at=c(value1, value2, value3)" .
Is there some equivalent in lattice? Thanks.
--
View this message in context:
2011 Sep 25
2
Increase space between xlab and X axis tick labels
People,
I am using the "las=2" parameter to rotate the labels for the X axis
ticks but it means that they are almost touching the "xlab" string. I
have been messing around with the "mai" paremeter but that doesn't help
- is there some way of increasing the space between xlab and the X axis
tick labels?
Thanks,
Phil.
--
Philip Rhoades
GPO Box 3411
Sydney
2005 Jun 14
2
lattice, panel.grid, and scales=list(tick.number=XXX)
I have a Lattice plot in which I want to adjust the number of tick
marks used, and I want to have the drawn grid reflect that change.
Here is what I'm doing:
bwplot(var1 ~ var2, data=df, scales=list(tick.number=10),
panel=function(...) {
panel.grid(h=0,v=-1,...);
panel.stripplot(col="gray40", pch="|", cex=2, ...);
panel.bwplot(...);
})
2010 Jan 27
1
control of scat1d tick color in plot.Predict?
Hi All,
I have a quick question about using plot.Predict now that the rms package
uses lattice. I'd like to add tick marks along the regression line, which
is given by data=llist(variablename) in the plot call. The ticks show up
fine, but I'd like to alter the color. I know the ticks are produced by
scat1d, but after spending a fair bit of time going through documentation,
it still
2006 Jan 11
2
Space between axis label and tick labels
I'm writing an publication in two column format and need to shrink some
plots. After increasing the axis labels it does not look nice at all.
The y-axis label and tick labels almost touch each other and the x-axis
tick labels expand into the plot instead of away from it. Is there a
better way than "cex" to control the:
1) font size of axis and tick labels
2) font thickness
3)
2011 Feb 17
2
need tick marks by 10s or 20s up to 200 on x axis
Sorry, I have read other posts on tick marks but nothing is working.
Here is my R code. I was able to turn off the x axis at one point (I
removed that code), but never got the tick marks on by 20s. It always goes
to the default of 50, 100, 150, 200.
Thanks.
R code: hist(OMY$FL, main = "2010 Oncorhynchus mykiss Fork Length
Frequencies at Buck Creek Reach 1", include.lowest = TRUE,
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
2010 Nov 18
3
Bold plot axis
Dear UseRs,
I'd like to make the lines that the axes of my plot run on bold. I know
"axis(side=1,lwd=3)" will make 0-max value on the axis bold, but I want
the whole thing, from corner to corner (actually all the way around) and
tick marks and the accompanying values for the ticks bold. In the
default values, it's hard to see the plot when I put it into a
powerpoint.
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,
2006 Aug 24
5
xyplot tick marks and line thickness
Hello,
A made a xyplot using the lattice library in R (latest version).
The publisher of our paper has requested:
1. all tick marks should point inwards instead of outwards.
2. All lines should be thicker (lines, axes, boxes, etc. Everything). Lines is easy...I used: lwd=1.5 but what about the lines of the axes, and the lines that build up the plot itself?....?
Any
2001 Sep 10
3
inter tick distance
R colleagues,
I am stumped. I would like the inter-tick distances to be the same on the x
and y axes but cannot determine how to do so when the lower half of the y
axis is not printed. Thanks for any and all suggestions. (btw, setting
par(pty="s") does not solve my problem)
Niels Waller
M<-matrix(c(2,1,
-1,3),2,2,byrow=TRUE)