Displaying 20 results from an estimated 1000 matches similar to: "axis in r plot"
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
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,
2002 Apr 12
1
persp(): z-axis annotation overwrites numbers at tickmark
Dear R-users
first, thanks to Paul Murrell for fixing my problem "What line is labeled in
persp()".
It works great now (in the development version).
One more question (I don't know if it's related to the "old" problem): the
annotation on the z-axis
overwrites the numbers at the tickmarks and sometimes, if numbers are pretty
long, the numbers themselfe overlap the
2010 Apr 26
2
plot dates
hi everybody,
How can you plot some dates? I mean how can i have the tickmarks with the label of each date on my x axis?
The dates i use are in POSIXct format, i don't know if it matters.
thanks a lot
Karine
_________________________________________________________________
Consultez vos emails Orange, Gmail, Yahoo!, Free ... directement depuis HOTMAIL !
2018 Apr 25
0
Can't Get Lattice Histogram Minor Tick Marks to Work
Per the Posting Guide, why didn't you post the reproducible R code example?
On April 24, 2018 8:22:15 PM PDT, Donald Macnaughton <donmac at matstat.com> wrote:
>I'm drawing a paneled histogram using the lattice package. I've
>succeeded in
>adding minor tick marks to the vertical axis, but I can't get the
>desired
>number of minor tick marks between the major
2005 Nov 02
2
Orientation of tickmarks labels in boxplot/plot
Hi,
I have been trying draw tickmark labels along
the y - axis perpendicular to the y axis while
labels along the x - axis parallel to x axis
while making box plot.
Here is my test dataset.
TData
ID Ratio
1 0 7.075
2 0 7.414
3 0 7.403
4 0 7.168
5 0 6.820
6 0 7.294
7 0 7.238
8 0 7.938
9 1 7.708
10 1 8.691
11 1 8.714
12 1 8.066
13 1 8.949
14 1 8.590
15 1 8.714
16 1
2018 Apr 25
3
Can't Get Lattice Histogram Minor Tick Marks to Work
I'm drawing a paneled histogram using the lattice package. I've succeeded in
adding minor tick marks to the vertical axis, but I can't get the desired
number of minor tick marks between the major tick marks.
I've attached a self-contained program to illustrate the problem.
Thanks for your help,
Don Macnaughton
Here's my sessionInfo:
R version 3.4.3 (2017-11-30)
Platform:
2010 Nov 29
1
surpressing tickmarks / labels x-as for two sets of boxplot (plotted as stacked boxplots)
Hello,
I am trying to plot two sets of boxplots together. These are estimates of two
experiments and?seven?factors.
The results of the two experiments I want to plot as boxplots stacked to each
other.
Therefore I plot first the results of the first experiment; and next with the
add option the second set of boxplots.
The boxplots are plotted at 'at = 1:7 - 0.15 for the first experiment and
2007 Sep 25
1
Spacing between x axis and labels
Hi,
my x-axis contains labels that consist of two lines (the actual label
and below information about groupsize). Unfortunately, there is too
little spacing between labels and tickmarks in this situation. Is there
a parameter to tune spacing between axis and labels?
Thanks,
Chris
2002 Mar 10
1
xaxp and yaxp
Hello,
I'm new to R, and I'm trying to set the number of tickmarks for a plot
using xaxp, but R seems to ignore this setting completely. Maybe you've
an idea what I'm doing wrong. I'm using R 1.4.1, and here's hat I'm
doing:
> d[,'seq']
[1] 28913 16323 13922 6237 4257 3881 4100 3781 2694 2064 1769
1550
[13] 1539 480
>
2009 Sep 14
1
How do I ensure that the minimum value is always displayed on a y-axis in a plot?
Good day all,
I'm trying to plot a figure and ensure that the minimum and maximum
values are always displayed. However, the code below does not display
the minimum value, no matter what I try. Could someone please help?
Thanking you in advance,
George.
Code below for reproduction (apologies if the paste is too long)
>blah
[1] 0.41955516 0.37330949 0.37934005 0.38013805 0.40092939
2002 May 21
2
using axis with newline characters
Wondering if I missed anything or if that's a problem with R:
I want to have many x axis tickmarks and labels such that it makes sense to put them on multiple "lines".
The newline character seems to be ignored though for axis labels:
plot(1:33, axes=F)
axis(1, 9, 9)
axis(1, 11, "\n11")
axis(1)
# whereas
title("one\ntwo")
works as I expect it to work.
In
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 Jan 11
1
Limiting number of tickmarks in lattice bwplot
Have a simple bwplot with 24 ordered factors across the x axis. I would like
to only label every 4th tick mark so that the labels fit. I tried
scales=list(x=list(tick.number=6)), but I still seem to get 24 tickmarks and
24 labels. Full code is below:
bwplot(SumOfIn.Use ~ Hour | Period,
scales=list(x=list(tick.number=6)),horizontal=FALSE,las=2,main="Rooms
Running",sub="Timeframe:
1999 Sep 13
5
axis() produces junk on DEC alpha (PR#274)
Full_Name: Albrecht Gebhardt
Version: 0.65.0
OS: Digital Unix 4.0E
Submission from: (NULL) (212.17.104.62)
Plottimg on the Alpha stopped working with 0.65.0.
The tickmarks have a length of -Inf and go across the whole
plot.
A first solution is the following patch:
--- src/main/plot.c.alpha-patch Mon Sep 13 01:37:11 1999
+++ src/main/plot.c Mon Sep 13 01:58:16 1999
@@ -832,7 +832,7 @@
2006 May 10
4
lattice package plots
I am using the lattice packge for its levelplot and contourplot. Is it
possible to adjust the line thickness of the 'box' and tickmarks in these
plots?
Thanks for the attention,
Matt Sundling
2009 Oct 13
2
axis labels
Dear list,
why does the distance between the axis labels and the tick marks looks
different for x axis and y axis in the plot (see code below).
In fact, the x axis labels look furthest from the tickmarks than in the y
axis.
How can I make them look the same?
par(mfrow=c(1,1), cex.axis = 0.5, cex.lab = 0.5)
plot(1,1, axes = F)
axis(1)
axis(2)
Thanks in advance
Jonas
[[alternative HTML version
2011 Dec 07
2
axis line width in boxplots
Dear R-helpers,
I've produced boxplots for a publication but I have a visual problem that I don't mamage to fix. For visual reasons, I reduced the line width with "lwd=0.5". It works nicely for all the lines (frame of the plot, boxes, notches and medians) exept for the axis line. Thus the two axes appear twice the width of the frame. How can I control only the width of the axis
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,