Displaying 20 results from an estimated 10000 matches similar to: "Wishlist: more flexible handling of tick labels in axis.Date (PR#7914)"
2005 Jun 02
1
Wishlist: more flexible handling of tick labels in axis.Date (PR#7913)
Full_Name: Gavin Simpson
Version: 2.1.0-patched (1-Jun-2005)
OS: Linux (Fedora Core 3)
Submission from: (NULL) (128.40.32.76)
axis.Date() insists on labelling tick marks. It could be made more flexible by
allowing the user to specify if they want the ticks to be labelled, for example,
to add un-labelled minor ticks for "months", added to a plot with "years"
labelled. The user
2009 Mar 04
2
patch for axis.POSIXct (related to timezones)
I am finding that axis.POSIXct uses the local timezone for deciding where to
put tic marks, even if the data being plotted are in another time zone. The
solution is to use attr() to copy from the 'x' (provided as an argument) to
the 'z' (used for the 'at' locations).
I have pasted my proposed solution in section 1 below (as a diff). Then, in
section 2, I'll put some
2006 Oct 12
2
plot.POSIXct
I've never had any issues with the way that plot.POSIXct chooses the
labels of the date axis before, but in this particular case it's output
is a little confusing.
plot(seq(as.POSIXct("1997-10-01"),length.out=108,by="month"),rnorm(108))
This command produces a chart with every x tick mark labeled as "Jan
01".
I can replicate this chart by adding the format
2008 Jan 12
0
hist.Date() and cut.Date(): approximations used when using breaks = 'months' or 'years'
Hi all,
I came across some curious behavior today in using hist.Date() and
subsequently noted the same behavior in cut.Date(), both of which are
using similar code when 'breaks = "months"' or 'breaks = "years"'.
I was in the process of creating a histogram of subject enrollment in a
clinical trial. The counts needed to be by month, so essentially used:
2013 Feb 14
3
Problems plotting and regression w.r.t. date data type on x axis
Hello,
probably a newbie question, but i didnt find any information on
plotting/regressing w.r.t. a date data type. My trials were unfruitful. Can
anyone help ? Thanks in advance!
Here is my interaction with R:
> tabelle
date number date2
1 2009-01-1 1673 2009-01-01
2 2009-12-1 2111 2009-12-01
3 2010-7-1 2487 2010-07-01
4 2013-2-1 4301 2013-02-01
> regression.punkte<-lm(tabelle$number
2023 Jan 09
0
Interactive 3D Plot with non-numeric axis tick labels
Dear all,
What I want to create is an interactive 3D plot from a data frame like this:
#: number
TLD: Countrycode
Date: date
String: a label
Because plot3d can only deal with numbers I converted Date to Year and
TLD as well as String to a numeric value like this:
numTLD <- as.numeric(factor(df$TLD))
# TLD Date String Year numTLD numString
1 DE 1988-11-07 B23K 1988 3 74
2 DE
2005 Jun 10
1
Wishlist: axis( ) could take vector of colors (PR#7930)
Hi,
This is not a bug, but a simple enhancement suggestion: that axis( ) also
allow option "col" to take a vector of colors equal to the length of
"labels". Currently it allows it, in the sense that there is no error
message, but the function will use just the first element of the vector.
Example
> plot(1:5,exp(1:5),axes=F,type="o")
>
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
2004 Sep 13
1
Wishlist: axis() and line widths (PR#7223)
Full_Name: Tom Short
Version: 1.9.1
OS: Win2000 & Debian
Submission from: (NULL) (64.65.255.41)
WISHLIST:
axis() has a default parameter of "lwd = 1". I want skinnier lines as the
default. If I change the default lty, it doesn't change what axis uses.
The following code produces a graph with a box around it, but the axis lines are
twice as thick as the box around the plot, so
2007 Oct 25
1
Strange behavior with time-series x-axis
I recently called plot(x,y) where x was an array of POSIXct timestamps,
and was pleasantly surprised that it produced a nice plot right out of
the box:
z <- as.POSIXct(c("2006-10-26 08:00:00 EDT","2007-10-25 12:00:00 EDT"))
x <- seq(z[1],z[2],len=100)
y <- 1:100
plot(x,y,type="l")
The X axis had nice labels, one tick mark every other month. (Plotting
on
2005 May 25
1
Plot: Distance between tick and tick label on y-axis
Hello,
I want to reduce the distance between my ticks and their labels. I managed
to do it for the x-axis, but the y-axis puzzles me. Here's an example where
there is no space between the x-asix ticks and labels.
par(las=1)
plot(runif(50), type="l",xaxt="n",yaxt="n",ylab="", bty="l")
axis(2)
axis(1,padj=-1.5)
#However,
axis(2,padj=-1.5)
2014 Jun 13
2
no x label using axis.Date
I have tried multiple different methods to figure out how to get a date axis
of my preference (start date of each month). Any assistance would be
appreciated.
The below section is not producing a date axis:
plot(totaldays$totaldays,totaldays$y,type="n",ylim=c(0,Emax),xaxt="n")
*xlabels<-(strptime(totaldays$totaldays,"%Y-%m-%d",tz=""))
2007 Jan 10
0
axis labels at subset of tick marks
For example, this works:
x = seq(-100, 1000, 25)
y = x * x
plot(x,y, xaxt="n")
axis(1,x,FALSE,tcl=-0.3)
axis(1,x[x %% 100 ==0])
It creates two axis objects and the values of the x-axis are the
labels. The following scenario is more difficult, because it uses
'image' to plot a grid of values:
a = matrix(rnorm(100),ncol=10)
image(1:ncol(a), 1:nrow(a), a, xaxt="n",
2003 May 07
1
Tick labels on y axis in lattice plots
I seem to remember this was discussed a year or two ago, but I can't
find it in the archives.
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system i686, linux-gnu
status
major 1
minor 7.0
year 2003
month 04
day 16
language R
2011 Jul 25
2
Lattice: distance of tick labels from axis line
Hi, I am doing fine editing on a lattice plot, now have the Y-axis title in
the correct position, but the tick labels are too far from the axis line. I
looked at the help documentation but could not find how to change this. This
seems to be easy to do in basic plots with "at=c(value1, value2, value3)" .
Is there some equivalent in lattice? Thanks.
--
View this message in context:
2008 Apr 10
2
Beautifying axis tick labels
Hi,
For example, the y axis shows "0 500000 1500000". Is there any way to
beautify the tick labels to get 0 5 10 15, and at the top of y-axis "x10^5"
(superscript 5) ? My plots all have different ylim, how to perform the
beautification automatically ?
Thanks
Stanley
[[alternative HTML version deleted]]
2010 Feb 02
2
Suppressing scientific notation on plot axis tick labels
Is there a better alternative to
x = c(1e7, 2e7)
x.lb = c(0,1e7,2e7)
s.lb = format(x.lb, scientific = FALSE, big.mark = ",")
barplot(x, yaxt = "n", ylab = "")
axis(side = 2, at = x.lb, labels = s.lb)
(I am sure there is a better alternative to line 2 :)).
Thank you.
--
View this message in context:
2012 Feb 11
0
How to solve long tick labels (axis.text.x)
Hi, all,
I am a newbie for [r].
I am currently trying to learn this example.
/http://learnr.wordpress.com/2009/03/17/ggplot2-barplots//
/http://learnr.wordpress.com/2009/03/17/ggplot2-barplots/ /
After I made a drawing
/c <- b + facet_grid(Region ~ .) + opts(legend.position = "none") /
If I want to make the axis.text.x (I don't want to mix with axis labels, so
I type
2011 Dec 13
2
axis tick colors: only one value allowed?
Hi,
So far as I can tell, the 'col.ticks' parameter for axis() only uses the
first value provided. E.g.:
plot(0:1,0:1, col.ticks=c('blue','red','green')) #all ticks are blue
Just wondering if there's a different option in the basic plot commands
that can handle multiple colors, and also whether ggplot and/or lattice
allow for multiple tick colors.
2011 Mar 10
1
Adjust the distance between tick mark labels and axis
Hi all:
I've been trying to figure out a way to move the tick mark labels in my lattice plots closer to the the axes. I've tinkered with a lot of the "buffer" parameters (those listed by trellis.par.get()), but haven't had any luck. Any ideas?
Cheers.
[[alternative HTML version deleted]]