Displaying 20 results from an estimated 10000 matches similar to: "Plot ticks and tick labels: thickness, colour?"
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
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.
2010 Oct 05
2
is there a way to avoid "traveling" grid?
Hello!
If you run the whole code below, it'll produce a stacked diagram. And
it looks good - because the tick-marks are aligned with the grid.
However, if I stretch the graph window, grid becomes misaligned with
the tickmarks. Or, rather, it seems aligned for the first and the last
tick mark, but not for tickmarks in between.
Can it be addressed?
Thank you!
Dimitri
### Creating a data set
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
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
2010 Oct 04
1
reducing distances between tickmarks
Hello, everybody!
I have a code below that creates a data set and then a stacked bar
chart based on that data set.
No need to look at it - just notice please that my horizontal axis is
a date varible (x=my.data$date).
I have a question about the last 2 lines of this code:
grid(nx=NULL,ny=NULL,col = "lightgray", lty = "dotted",lwd = par("lwd"))
axis(1, las = 2)
Could
2006 Mar 04
1
xyplot/levelplot: thickness of tickmarks
Hi,
if I use the xyplot (or levelplot) function (lattice library) with
the option axs="i", I have the problem that the tickmarks lie a bit
outside the "plot-box". Consider for example:
library(lattice)
x<-seq(0,1,by=0.01)
y<-seq(0,1,by=0.01)
xyplot(y~x,type="l",xlim=c(0,1),ylim=c(0,1),scales=list
2011 Dec 06
2
axis thickness in plot()
Hello,
I am trying to increase the thickness of the axis in plot() without
reverting to the use of paint programs
i see posts on that topic for the xyplot function but want to see if i can
do it with plot() because i've already setup my graph script using that
i thought i could use axis() function and specify lwd="thickness" or
lwd.axis= but that does not work like it does for
2018 Apr 25
1
Can't Get Lattice Histogram Minor Tick Marks to Work
Thanks Jeff,
I attached a file with the program to my earlier email because the posting guide seemed to imply that non-binary attachments would work. But I see that the file was stripped off.
I installed the program file on a web site, but when I downloaded it, the line breaks were stripped out. So I've included the program below:
-------------------------------------------------------
#
2007 Nov 12
1
Tick mark puzzle.
I am bewildered by the behaviour of tickmarks as demonstrated by the
following code. (What I'm trying to do is draw a single tick mark
extending
from the axis all the way down to the tick label, which is two lines
from
the axis to make sure it doesn't overlap with the ``ordinary'' tick
labels.)
# Try 1:
# Gap between tickmark and label.
plot(1:10)
axis(side = 1, at = 2.35,
2004 Jan 22
4
Axes Ticks
Apologies, basic question on plot.
y <- c(-4,3,-2,1);
x <- c("time 1", "time 2", "time 3", "time 4");
plot(x,y, type="b");
of course fails.
x <- 1:4
makes it succeed, but then I have too many ticks on my X axis. I want
exactly 4 tickmarks. It would also be nicer if I could name the ticks.
I looked at ?par and Venables&Ripley,
2012 Jun 22
6
axis in r plot
I have a graph plotted in r.The x axis tickmarks are at 0,5,10. I need a
graph with resolution of tickmarks at 0.1 interval.When i place tickmarks of
0.1 intervals using the following command axis(1, at=seq(0,5,0.1),
cex.axis=0.7, las=2) I only get the tickmarks of 0.1 interval that are very
closed placed in the graph.I need to increase the spacing between each
tickmark. Please anyone help out
2002 Sep 05
4
line thickness in plots
Hi all,,
Is it possible to set a thicker line for the box around the plots? (i.e.
for the four axes)
Something like lwd (lines) but for the box.
Thanks
juli
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the
2006 Feb 21
2
rotated labels in barplot with beside=T and multiple groups
I have a data set that I display using barplot. I don't know what you
call it, but when I look at it, it looks like this:
> lsu
(0,0.1] (0.1,0.2] (0.2,0.3] (0.3,0.4] (0.4,0.5] (0.5,0.6]
A 0.052631579 0.000000000 0.000000000 0.000000000 0.000000000 0.000000000
B 0.000000000 0.000000000 0.001007049 0.003021148 0.000000000 0.000000000
E 0.200000000 0.000000000
2017 Oct 31
0
Scatterplot3d :: Rotating x tick labels by x degrees
Hi Alex,
this should be related to the "las" argument of "par()" but
actually it does not seem to be parametered in scatterplot3d.
Searching the net for "scatterplot3d las" provides a link to:
https://stackoverflow.com/questions/25458652/specifying-the-orientation-of-the-axes-labels-in-scatterplot3d
You may try the solution that is provided in this link or consider
2009 Jul 09
2
X-axis labels not displayed when changing ylim
Dear R users,
I am encountering a x axis labeling problem on quite basic plots...
I use the following code which displays the labels on the x-axis with a
45 degrees angle:
p <- plot(myobject1, type="b", col="red",cex=1, lwd=2, axes=FALSE,
ann=FALSE, ylim=c(0,70))
title(main="title", font.main=4)
axis(side=1, lab=F)
text(axTicks(1), par("usr")[3] - 2,
2017 Oct 30
4
Scatterplot3d :: Rotating x tick labels by x degrees
Hi,
I would like to rotate the x axis tick labels by 45 degrees. Using the code below, could someone please provide an example? Many Thanks In Advance, Alex
library("scatterplot3d")
mydf=data.frame(rate=seq(158, 314)
,age=seq(1, 157)
,market_date=seq(as.Date("2000/1/1"), as.Date("2003/1/1"), by="7 days"))
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 Feb 23
6
Getting tick positions
While writing a function that includes placing grid lines at the same position
as the axis ticks, I found that the axis* functions don't return anything.
Thus I have had to copy the appropriate function, removing the call to axis()
and adding a line to return the tick positions. Is there a more elegant way
to determine the tick positions on an axis? Thanks.
Jim
(normally bitwrit at
2017 Oct 31
1
Scatterplot3d :: Rotating x tick labels by x degrees
> On Oct 31, 2017, at 8:55 AM, Olivier Crouzet <olivier.crouzet at univ-nantes.fr> wrote:
>
> Hi Alex,
>
> this should be related to the "las" argument of "par()" but
> actually it does not seem to be parametered in scatterplot3d.
> Searching the net for "scatterplot3d las" provides a link to:
>
>