Displaying 20 results from an estimated 10000 matches similar to: "axis labels"
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
2007 Jun 19
2
axis labels in multiple plots
Hi,
I'am trying to make a multiple bar plot over a map and I'm having difficulties with the distance
between axes labels and the axis. Trying to control this with mgp does not help because it
controls both axes simultaneously. For example, with default values (mgp = c(3, 1, 0)) y-axis
labels are ok, but x-axis labels are not. Setting mgp = c(3, 0, 0) gives good x-axis labels but
the
2009 Sep 04
2
help with functions
Hi all,
I have got 2 function (see bellow) which are simplifications of what I need
to do. These functions are precisely the same, except for the last line.
My question is, why doesn't function testA work in the same way as function
testB.
Both functions produce two objects, "a" and "b" that must merged with rbind.
The difference is that in testA, I specify the name
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
2010 Mar 16
3
boxplot, vertical position of x-axis labels
hello,
i can't figure out how to change the vertical position of my x axis labels..
boxplot(c(1:12)~c(rep("1",6),rep("2",6)),at=c(1,2),
col=c(0,"grey"),las=1,xaxt="n")
### i put paragraphs in the x-labels because of limited horizontal space
axis(1,at=c(1,2),adj=1,labels=c("Salix
Scrub","Tall
Forb"))
...the labels are one line
2009 May 16
1
vector fragment
Dear R users:
I have got a simple question that has been bothering me for a while.
Given a certain character vector, I would like to get in a separate vector a
fragment of text, in this case the 3rd and 4th letters of each element.
So, if:
v<- c(“stratosphere”, “mesosphere”, “troposphere”)
I want to obtain a different vector like this:
c(“ra”, “so”, “op”)
Thanks in advance
2009 Sep 01
2
cbind objects using character vectors
Dear list,
I have a character vector such vec.names<- c("a", "b")
It happens that I have also two R objects called "a" and "b" that I would
like to merge. Is it possible to
do something like cbind(vec.names[1], vec.names[2]) ending up with the same
result as cbind(a,b)
Bellow is a reproducible example of what I need to to:
dat<-
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
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
2007 Oct 09
2
lattice/xyplot: horizontal y-axis labels with scales(relation="free")
I would like to create an xyplot with varying y-axis limits and horizontal labels at the y-axis tickmarks.
The following does not seem to work, although I think it should, going by the documentation for par.
R version 2.5.1, Windows XP Prof.
Thanks for a clue.
Andreas Krause
library(lattice)
# axis labels for y-axis are horizontal
xyplot(Sepal.Length ~ Sepal.Width | Species, data=iris)
#
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
2011 Sep 12
1
Multilevel model in lme4 and nlme
Dear list,
I am trying to fit some mixed models using packages lme4 and nlme.
I did the model selection using lmer but I suspect that I may have some
autocorrelation going on in my data so I would like to have a look using the
handy correlation structures available in nlme.
The problem is that I cannot translate my lmer model to lme:
mod1<- lmer(y~x + (1|a:b) + (1|b:c), data=mydata)
2001 May 09
2
R help files -> S-Plus; par('mgp')
Thanks to Brian Ripley I have been using R utilities for
some time for converting S-Plus UNIX nroff help files
to .Rd to .html files. .Rd files seem to be the most
natural format for help files and this format is probably easier
to maintain than nroff, so I would like to start
using .Rd files as my master documentation format
if anyone has a utility for going from .Rd to nroff.
I guess I could
2002 Jul 01
3
manipulating axis labels in grid and lattice
I am trying to use wireframe at the moment and the axis labels are
overlapping with the tick labels. It seems that gpar does not yet
utilize the mgp argument. Is there anyway to manipulate the position of
the axis labels?
The best I can manage so far is to manipulate the cex so as to shrink
everything down.
thanks, Carlo Maley
--
Dr. Carlo C. Maley
Staff Scientist
Fred Hutchinson Cancer
2013 Feb 01
1
x-axis labelling
Hi Folks!
I have a question regarding an issue on which I´ve read a few threads but
can´t resolve --> Labelling every other tick mark on the x-axis using
factors. Here´s an example:
db<-data.frame(date=as.factor(c(1:50)),var=rnorm(50))
barplot(db$var,names.arg=levels(db$date),las=2,cex.axis=0.8,cex=0.8)
This labels all the tickmarks in my barplot, which is the default behavior.
I would
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
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
2011 Oct 16
2
Custom Sort Character and Numeric
I"m trying to do a custom sort in this order:
1) Numeric digit furthest right;
2) Alphabetical second furthest to the right;
3) Alphabetical the rest of the string beginning with the first character;
The example code I'm using is an array that follows:
/myArray <-
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