Displaying 20 results from an estimated 9000 matches similar to: "Spacing between x axis and labels"
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
2012 Aug 10
2
creating a contingency table from a data.frame automatically (NOT BY HAND)
Hello there!
I am still struggling with a binomial response over all categorical
variables (some of them with 3 levels, most with 2 levels). After
initial struggles with glm's (struggle coming from the data, not the
actual analysis) I have decided to prefer contingency tables. I have my
data such as:
response:
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
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
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
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
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 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
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
2013 Dec 17
1
What is the formula of Pseudo-F statistic in capscale in vegan?
Dear R-help,
We are conducting a distance-based redundancy analysis using capscale and
then testing for statistical significance for six terms in the model for the
constrained ordination using anova.cca in the vegan package. The
significance test is sequential, i.e., testing for significance of a term
only after accounting for all preceding terms. Could someone please provide
us with either the
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
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
>
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:
-------------------------------------------------------
#
2012 Jan 31
1
Currency symbols in Xtick or Ytick labels
How do you label Xtick and Ytick marks with Currency symbols: $2000
instead of 2000? I would like to add dollar symbols to tickmarks on
boxplots, histograms and back-to-back histograms.
My Examples (requiring the lattice and Hmisc packages):
data(case0102, package="Sleuth2")
str(case0102)
boxplot(Salary~Sex, case0102)
histogram(~ Salary | Sex, data=case0102)
require(Hmisc)
#
2010 Nov 16
1
format secondary axis for dates
Dear List,
this may be a Newbi question and may have been asked several times, but i am too stupid to find the posts.
I have a plot of values against POSIXct time steps. If I want to add a second x axis to the top margin of the plot, only numbers are at the tickmarks. Is there a straightforward way to specify the format to convert them to character representations (similar to the labels at the
2013 May 07
2
recode categorial vars into binary data
Dear R-List,
I would like to recode categorial variables into binary data, so that all values above median are coded 1 and all values below 0, separating each var into two equally large groups (e.g. good performers = 0 vs. bad performers =1).
I have not succeeded so far in finding a nice solution to do that in R. I thought there might be a better way than ordering each column and recoding the
2013 May 07
2
recode categorial vars into binary data
Dear R-List,
I would like to recode categorial variables into binary data, so that all values above median are coded 1 and all values below 0, separating each var into two equally large groups (e.g. good performers = 0 vs. bad performers =1).
I have not succeeded so far in finding a nice solution to do that in R. I thought there might be a better way than ordering each column and recoding the