Displaying 20 results from an estimated 6000 matches similar to: "proposal for new axis.Date/axis.POSIXct"
2010 May 21
0
pretty.Date(): changes to axis() methods?
Hi all.
pretty() is now generic in R-2.12 and there are new methods for Date
and POSIXt classes. These methods could potentially be used inside
axis.Date and axis.POSIXt (and Axis methods), although that has not
been decided yet.
The main advantage of the new method is that it is flexible, in the
sense that users can specify the desired number of ticks on an axis.
(e.g. one could easily draw,
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
2010 May 19
1
pretty.Date(): new "halfmonth" time step
Hi R-devel / R-core
In the new pretty() methods for Date and POSIXct
https://svn.r-project.org/R/trunk/src/library/grDevices/R/prettyDate.R
there is currently a "pretty" time step listed as "15 DSTdays"... but
this actually doesn't line up well with months.
Much better to implement directly what this is trying to do: i.e. to
have a "halfmonth" time step. This is
2010 Jan 11
2
example() leaves console prompting to press Enter for new graphs
Env: Win XP, R 2.9.2]
It's a minor annoyance, but I find that after I run example(), the
console state of prompting to press Enter for
each new graph remains as it is under example. It's more annoying that
it seems difficult to turn this behavior
off!
In a fresh session:
> getOption("example.ask")
[1] "default"
Run an example:
> example(plot)
plot>
2010 Oct 21
1
gam plots and seWithMean
hello
I'm learning mgcv and would like to obtain numerical output corresponding
to plot.gam.
I can do so when seWithMean=FALSE (the default)
but only approximately when seWithMean=TRUE.
Can anyone show how to obtain the exact values?
Alternatively, can you clarify the explanation in the manual
"Note that, if seWithMean=TRUE, the confidence bands include
the uncertainty about the
2008 Nov 27
1
par(ask=TRUE) and devAskNewPage(ask=TRUE) not working
Hi,
First, I do some calculation, then a plot. Add some lines and texts to the
plot.
Second, do some further calculation, then a plot. Add again some lines and
texts to the plot.
Third, do some further calculation, then....
Fourth, .....
After a plot is complete (means the plot itself, lines and texts) I would
like to click 'enter' to see
the next complete plot (again the plot itself,
2009 Jan 02
1
How to capture multiple graph pages to .png ?
Hello all and thanks in advance for any help,
There are really two issues that I am having, both related to saving
graphs:
1) It seems that the "dev...()" functions are unstable when using higher
level graphs (specifically I was using levelplot)
2) I have a large grid of levelplot graphs that I can print out into a
subset quite easily when I print to screen, but if I print to a
2008 Sep 03
1
ggplot2: line plot with gaps in time axis
Hello, I'm trying to plot data that has gaps in the timeline because my data
only has the business day in it. When I do a line plot I get the data and
then a blank area where a line goes the tail of the last data point to the
head of the next data point. Is there a way I can do a line plot where the
gaps are not plotted?
Thanks in advance,
Brian
> names(utildf)
[1]
2016 Aug 18
1
axis.POSIXct and axis.Date fail for reversed axes
When plotting a reversed time axis with the base graphics system, R
fails to label the axes.
Example:
times <- c(Sys.time() - 100, Sys.time())
plot(times, 1:2, xlim = times) # correctly labels the x-axis
plot(times, 1:2, xlim = rev(times)) # fails to label the x-axis
axis.POSIXct(1, times) # still fails to add labels
dates <- c(Sys.Date() - 10, Sys.Date())
plot(dates, 1:2, xlim = dates)
2009 Nov 05
2
annotating time axis by axis.POSIXct
Dear all
I try to format labels on axis as standard ones does not look well, but I
am not able to make axis.POSIXct to work. here is an example
x<-seq(as.Date("2008-1-1"), as.Date("2009-9-6"), by="2 months")
y<-rnorm(11)
plot(x,y) #not very sophisticated axis
plot(x,y, axes=F)
axis(2)
axis.POSIXct(1, at=x, format="%m/%Y") # no axis
The same is on
2009 May 11
1
inconsistent results for axis.POSIXct
Some time ago, I posted a note about what I considered to be a bug in
axis.POSIXt() for R 2.8.x, relating to whether timezones in the data are
obeyed on the axes. A link to that note, and to a quick and helpful
response, is at the following URL
http://www.nabble.com/patch-for-axis.POSIXct-%28related-to-timezones%29-td22338700.html#a22338700
Note that R 2.9.0 has been adjusted to help with
2009 Oct 19
2
Possible bug in plot.POSIXct regarding x axis
I believe I have found a bug (or at least a misfeature) in plot.POSIXct.
See the following example code.
set.seed(1)
x=seq(1,1e8,length=100)+round(runif(100)*1e8)
y=as.POSIXct(x,origin="2001-01-01")
plot(y)
This plots some random (date)times against their indices. The y axis
correctly shows appropriate values (years), but the x axis contains the
single number '59:58' in the
2012 Jan 20
3
break an axis.POSIXct
Hi
I like to use "axis.POSIXct" to plot days from 2006 till 2008. But I
only have datas for the summer months. Is it possible to get two axis
breaks, to have not so long distances without points?
thx
Christof
2007 Sep 11
1
POSIXct dates on x-axis using xyplot
I am using 'xyplot' in lattice to plot some data where the x-axis is a
POSIXct date. I have data which spans a 6 month period, but when I
plot it, only the last month is printed on the right hand side of the
axis. I would have expected that at least I would have a beginning
and an ending point so that I have a point of reference as to the time
that the data spans. Here is some test
2009 Oct 20
0
plot.POSIXct uses wrong x axis (PR#14016)
Full_Name: Karl Ove Hufthammer
Version: 2.10.0 beta
OS: Windows
Submission from: (NULL) (93.124.134.66)
When plotting a single POSIXct variable, 'plot' uses a nonsensical x axis. Here
is some example code:
set.seed(1)
x=seq(1,1e8,length=100)+round(runif(100)*1e8)
y=as.POSIXct(x,origin="2001-01-01")
plot(y)
The y axis correctly shows appropriate labels (years 2002 to 2006),
2001 Sep 19
1
X-axis with POSIXct dates
I have a series of datasets, each containing pH measurements and
manufacturing dates, and each dataset pertains to a different manufactured
product. I'm trying to create a series of plots of pH measurements by
date, but the default X-axis labeling behavior is not giving adequate
results in this particular case, and I can't figure out how to persuade R
to come up with something more
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
2004 May 27
2
axis.POSIXct: Datetime data and plotting
I've run into a problem with the datetime axis generated by axis.POSIXct. It appears a similar issue was discussed in October 2003 under the subject line "datetime data and plotting" (see https://stat.ethz.ch/pipermail/r-help/2003-October/039071.html), but I wasn't able to determine whether there is a straightforward solution.
The code below produces a graph with apparently
2009 Oct 08
1
"ask=F" option with plot.gam
Hello.
I'd like to plot only one component smooth function of a gam model (for example the second) (library mgcv). So, I did :
plot(my.gam, select=2, ask=F)
But plot.gam doesn't seem to understand the "ask" option, so I can't deactivate the interactive plotting. I tried and failed by forcing it through :
par(ask=F)
And the "page" option of plot.gam (automatic
2011 Feb 08
2
Stopping between multiple graphs
Hello. I would like to know if there is a command for stopping between
multiple grpahs. I have a for in which I create a graph in each iteration. I
would like R to wait for a click or an enter to pass to the next graph. Does
anybody know how can this be done. Thank you
Felipe Parra
[[alternative HTML version deleted]]