Displaying 20 results from an estimated 8000 matches similar to: "Axes Ticks"
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
>
2002 Jun 21
2
Load prediction
Hello,
This is perhaps more of a regression question than R,
but I am learning both, so would appreciate your
wisdom here.
I have some data which reflects power load for an
electrical generating system, with some temporal
features. The data fields look like this:
D,MON,DAY,YR,HR,WDAY,DRYBULB,WETBULB,LOAD
4455 5 13 92 13 4 70 63 1617
4456 3 9 92 13 2 73
2004 Feb 12
1
suggestion "suggestion" and dataframe operations
hi chaps:
a simple suggestion: R tells me who the contributors() are, but this
should also tell me where I should mail suggestions to. Is it this
mailing list? a repository of suggestions? an individual?
this came up because i wanted to suggest two small enhancements:
the first is for the summary() method for plain data frames. it would
seem to me that the number of "NA"s
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
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:
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
2005 Oct 08
1
how to control ticks in plots with yasp or xasp
Hi,
A few times I tried to control the number and position of tick marks
in plots with the yasp or xasp parameters. For example, a y axis was
drawn by default with tick marks at 0, 20, 40, 80 and 100. I tried to
get tick marks every 10 by adding
yasp=(0, 100, 10)
but this had no effect at all. I know I can draw the axis and tick
marks manually, but often this simple option would suffice
2008 Oct 01
3
shifting ticks to left or right
Hey list,
Does anybody knows a command to centre the tick mark labels exactly
between the tick points (right shift)?
And then to exclude the last tick label on the right?
I know one can shift them using the 'hadj' option in par. But I am
wondering if there is a more convenient command!
Thanks a lot!!
Stefan
[[alternative HTML version deleted]]
2007 Nov 30
2
Organising tick-marks in plot()
Hi Folks,
I'm advising someone who's a beginner with R,
and therefore wants the simplest answer possible.
The issue is to produce a plot using
plot(x,y,...)
where, on the X-axis, the tick-marks should be
on the lines of:
-- Range of X-axis: 0:1000
-- tick-marks labelled "0","200",...,"800","1000"
-- unlabelled tick-marks every 50 from 0 to
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
2013 Feb 06
5
First R Package --- Advice?
Dear R experts---
after many years, I am planning to give in and write my first R
package. I want to combine my collection of collected useful utility
routines.
as my guide, I am planning to use Friedrich Leisch's "Creating R
Packages: A Tutorial" from Sep 2009. Is there a newer or better
tutorial? this one is 4 years old.
I also plan on one change---given that the
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 Jul 02
5
%dopar% parallel processing experiment
dear R experts---
I am experimenting with multicore processing, so far with pretty
disappointing results. Here is my simple example:
A <- 100000
randvalues <- abs(rnorm(A))
minfn <- function( x, i ) { log(abs(x))+x^3+i/A+randvalues[i] } ?## an
arbitrary function
ARGV <- commandArgs(trailingOnly=TRUE)
if (ARGV[1] == "do-onecore") {
?library(foreach)
?discard <-
2003 May 11
2
X axis series labels?
I am about to become a new user of R, so apologies for a total beginner
question.
I need to graph some time-series. I would like to name the X-Axis with
another series, say T. For example, the T series may have observations
like "2003-12", which I would like to be the label. can this be easily
done?
as a new user: it would be nice if the FAQ listed the add-on packages in
2002 Jun 04
4
par(xaxp)
I think this is a bug; at least this behavior is not documented in plot
or plot.default.
plot.default resets xaxp, and leaves xaxp reset when it exits:
par(xaxp=c(0,1,4))
print(par("xaxp"))
plot(c(0,1),c(0.2,0.3))
print(par("xaxp"))
R. Woodrow Setzer, Jr. Phone:
(919) 541-0128
Experimental Toxicology Division
2012 Mar 30
4
list assignment syntax?
Dear R wizards: is there a clean way to assign to elements in a list?
what I would like to do, in pseudo R+perl notation is
f <- function(a,b) list(a+b,a-b)
(c,d) <- f(1,2)
and have c be assigned 1+2 and d be assigned 1-2. right now, I use the clunky
x <- f(1,2)
c <- x[[1]]
d <- x[[2]]
rm(x)
which seems awful. is there a nicer syntax?
regards, /iaw
----
Ivo Welch
2004 Dec 28
2
Varying x-axes ticks
Dear R Users,
I have the following situations to plot.
x-values (times) : range from 0 to 104 (in weeks)
y-values (hazards) : range from 0 to 0.5
Now I want to make a plot of time versus hazards such
that in the time axis (i.e x-axis) the values 0-24 occupies
half of the axis and the values 25-104 ocupies the rest
of the axis.
In other words I want to emphasize on first 24
2010 Aug 20
3
Date Inconsistencies? Buglets?
The treatment of dates seems to be a little inconsistent in R 2.11.1
(2010-05-31):
[1] The choice of origins?
> as.integer(as.Date("1970-01-01"))
works and assumes as origin 1970-01-01. However,
> as.Date(1)
does not work. It requires an origin (as.Date(1,
origin="1970-01-01")). If we set a default origin in the former, it
should probably work when the input
2004 Feb 19
3
suppressing non-integer labels for plot x-axis
Dear R-helpers,
I am having difficulty making R plot only integer labels on the x-axis
of a simple graph. I want to plot the median values of a score on each
of three occasions. Non-integer occasions are impossible. But, R keeps
labelling the x-axis with half-occasions, despite my attempts to stop
this using the "xaxs" and "xaxp" parameters of 'plot'.
p1=c(1,2,3);