similar to: Tick mark alignment for POSIXct data

Displaying 20 results from an estimated 20000 matches similar to: "Tick mark alignment for POSIXct data"

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
2003 Sep 09
1
Changing Tick Marks for Date Plots
I have been experimenting with various approaches to plotting (irregular) time-series with reasonable success. One thing I have been able to do is change the number of tick marks on the axis. Consider the following simple example: > x <- as.data.frame(matrix(ncol=2,nrow=500)) > names(x) <- c("dates","values") > x$dates <- as.POSIXct(Sys.time()+1:500*86400)
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
2007 Jul 31
1
POSIXct Formating Error (PR#9819)
To Whom It May Concern: The following appears to be a bug in the way POSIXct dates are formated. The example is forced, but occurs naturally when importing Excel type dates (where fractional part is fraction of a day) and small rounding errors result. As shown, looking at the POSIXct class, it looks as if both times are 16:11:03 (truncation) Looking at as.numeric.POSIXct, it looks as if
2009 Dec 21
1
proposal for new axis.Date/axis.POSIXct
Hi R-devel. I've noticed a couple of quirks in the current time/date axis functions (axis.Date, axis.POSIXct, and the equivalents in lattice). Looking at the code, it seems like a fairly ad-hoc approach, often using pretty() on components of the time. This is not always ideal - for example a one-hour interval gets cut into 10-minute chunks rather than the more natural 15-minute chunks (since
2006 Mar 19
2
tick mark intervals
Hi everyone! This must be a common question but I have not found an answer to it in the archives yet. I am producing four plots with par(mfrow=c(2,2)). The x-axis is the same for all of them but the y-axis is different. What I would like to do is to have a different range of the y-axis and different intervals between tick marks. BUT I would like to have the same number of tick marks and I would
2004 Mar 05
3
as.POSIXct problem
Hi all, I'm having difficulty converting a 'dates' object to a POSIXct object: testDATES<-c(35947,35971,36004,36008,36053,36066) testDATES<-chron(dates=testDATES, format = c(dates = "m/d/y"), origin=c(month = 12, day = 30, year = 1899)) >[1] 06/01/98 06/25/98 07/28/98 08/01/98 09/15/98 09/28/98 > as.POSIXct(testDATES) [1] NA NA NA NA NA NA
2009 Sep 18
1
as.POSIXct(as.Date()) independent of timezone
Dear R users, I am struggling a bit with the converting dates to full POSIX timestamps, in particular, I would like to somehow force the timezone to be local, i.e. the output of as.POSIXct(as.Date("2008-07-01")) should always be equal to "2008-07-01 00:00:00", is that achievable ? I tried to set the origin and the timezone, neither of which seems to make a difference. On my Mac
2004 Dec 29
1
Question about setting tick mark limits in Plot
Dear R-list, I am having trouble getting the Plot function to set the tick marks the way I want, and I am not sure what I am doing wrong. Below is the code that I wrote, and I am not sure why it doesn't work. p is a vector of length 2198, containing numbers between 0 and 240. q is a vector of ones, the same length as p. I want the x-axis to have tick marks every 30 min and I want the
2004 Aug 19
2
proposed change to [.POSIXct
R developers, The "tzone" attribute is stripped from a POSIXct object when the subscript command is called ("[.POISXct"). This results in dates being printed in the locale specific format after a subscript operation is applied to a POSIXct object which has cause several problems for me in the past. Here is an example of this problem under R 1.9.1: > x <-
2008 Oct 30
2
xyplot, the first tick mark starts from 2 rather than 1, and also there is a NA as the final tick mark.
I am trying to plot some data, but have got some difficulties with labels on the tick marks on the x-axes. There are 20 data points. All I want to do is to plot the Loss versus Lines. When I use xyplot, the first tick mark starts from 2 rather than 1, and also there is a NA as the final tick mark. Here is the R code you code give it a try: Would any body be able to fix this, please?
2003 Aug 30
2
Bug in plot() with POSIX dates (PR#4024)
When I do this (highly simplified example): plot(as.POSIXct(c("1984-01-01","1984-01-02")), c(1,2), col=2) I get a partially red (col=2) x-axis between and including the first and last tick marks. Otherwise ok. Only happens with POSIXct or POSIXlt dates. Also, POSIX dates cannot be used on the y-axis? POSIXlt gives an error, and POSIXct is unformatted. Bruce Using X11
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
2007 Jun 14
1
Define tick mark width
Hello, Is there a way to define the width of the axis tick marks on traditionnal plots? I did not find anything specific on this topic in the help and par(lwd=...) does not affect the tick marks. I guess that using axes=FALSE and recreating the axis with the axis() command could do the trick but I wonder if there is no easier way. Thanks in advance Sebastien
2012 Nov 26
1
zoo timeseries plot; minor tic mark level control
I cannot figure out how to tune the minor tic marks on the date axis of a zoo plot. I read hundreds of CSV files from a zip archive transparently. The time/date strings I convert to POSIXct format, order them and then make a zoo object as there may be cases which have unequal time stamping. As follows: ###################### #Transform timestamps and reorder them dat <- transform(dat,
2010 Dec 26
1
lattice splom: how to adjust space between tick marks and tick labels?
Dear expeRts, how can I decrease the space between the tick marks and the corresponding labels in an splom? See here: library(lattice) U <- matrix(runif(4000), ncol = 8) splom(U, axis.text.cex = 0.2) # => space between the [small] tick labels and tick marks is/seems to be too large I checked ?panel.pairs but could not find an option for that. Cheers, Marius
2004 May 22
2
How to define specific location of tick marks in plot()
Hi, I wish to create a series of plots with the same x-axis range and the same placement of tick marks. In addition I want to force the tick marks to be at specific locations. For example, if I wish to have an x-axis which goes from 40 to 110, with tick marks at 40, 50, 60, ... , How can I accomplish that? The various parameters I have tried changing just seem to be suggestions for
2004 Sep 01
1
Tick marks in cloud (lattice)
Hi! Probably a simple question, but I can't get any tick marks in the 3d scatterplot I created using the cloud function. The following works to display the three groups using different symbols: data(iris) cloud(Sepal.Length ~ Petal.Length * Petal.Width, data = iris, cex = 1.2, groups = Species, pch = c(16,1,1), col = c("black","black","red"), subpanel =
2007 Jul 06
1
Changing Tick Mark Values for lattice / wireframe
How can I change the tick mark values in lattice, specifically wireframe? I have a 11*46 matrix of values that I am plotting using wireframe. Unfortunely, the values range from 0.1-1.1 and 0.5-5. Using the code below the tick marks have are (2,4,6,8,10) and (10,20,30,40). Thanks in advance. graphic5 <- wireframe(output.matrix, shade= TRUE, scales = list(arrows = FALSE, cex=.6,
2006 Sep 14
1
working with strptime data
Dear R-forum, I am looking for a good resource/help on working with POSIXct values and controlling the pretty x-axis labels and tick marks for a data VS time plots. Specifically, I wish to do programming logic which creates different vertical ablines calculations based on the range of times which i am working on. The default plot results are adequate, but I would love to make explicit calls on