similar to: Formatting POSIXt values in plot axis labels

Displaying 20 results from an estimated 4000 matches similar to: "Formatting POSIXt values in plot axis labels"

2005 Mar 26
1
Trouble with expression() in R-win 2.0.1
Hi. The following statement works fine in R-win 1.8.0, but yields a syntax error in R-win 2.0.1 (and possibly in other versions after 1.8.0): plot(c(1,2),main=expression(a==b==c)) I note that the following workaround executes successfully in both versions of R... plot(c(1,2),main=expression(a*"="*b*"="*c)) ...but I don't really understand
2003 Aug 16
2
Prediction Intervals (reposting)
(I'm reposting this message because the original has not appeared after about 2 days. Sorry if it shows up twice.) Hello. First, thanks to those who responded to my recent inquiry about using contour() over arbitrary (x,y) by mentioning the interp() function in the akima package. That worked nicely. Now for a new question: I would like to use a pair of prediction intervals to
2006 Dec 07
2
Matplot does not work with x being POSIXt class (PR#9412)
Hi, Matplot works with x being Date class but not POSIXt. Here is the example with R version 2.5.0 Under development (unstable) (2006-12-06 r40129) Example: x <- Sys.Date() - c(1:10) y <- cbind(1:10, 10:1) class(x) ## [1] "Date" matplot(x, y) x <- strptime(as.character(x), format="%Y-%m-%d") ## [1] "POSIXt" "POSIXlt" matplot(x, y) Error in
2002 Nov 22
2
Need help with pipe()
Hello. I have an R program that calls gawk (GNU Awk 3.06 for Windows) from within pipe() to preprocess a large file before it is read into a data frame with read.table(). I've recently upgraded from Win98SE to WinXP, and have also upgraded from R1.5.0 to R1.6.1 over the past month or so. This program worked before the upgrade(s), but now fails. I observe the following sort of behavior with
2002 Aug 23
1
Legends and Fonts
Hello. Is it possible to set specify the font used by legend()? I would like to specify a fixed-width font so that I can line up parts of vertically stacked curve labels. For example, it would be nice if I could align the names, ages, and weights in the following three curve labels: Bob age=7 weight=100 Alexander age=13 weight=150 Susan age=20 weight=130 Is there perhaps a clever
2008 Mar 24
1
Cannot allocate large vectors (running out of memory?)
Hi. As shown in the simplified example below, I'm having trouble allocating memory for large vectors, even though it would appear that there is more than enough memory available. That is, even with a memory limit of 1500 MB, R 2.6.1 (Win) will allocate memory for a first vector of 285 MB, but not for a second vector of the same size. Forcing garbage collection does not seem
2002 Aug 19
1
PR#1914
(1) With MSVCRT.DLL (version 4.20.6164) from ftp://ftp.microsoft.com/softlib/mslfiles/msvcrt.exe installed in rw1051\bin directory, as per RWinFAQ 2.14: RGUI caused an invalid page fault in module MSVCRT.DLL at 017f:78014b90. Registers: EAX=0093007a CS=017f EIP=78014b90 EFLGS=00010246 EBX=017a2360 SS=0187 ESP=0091eee4 EBP=0091ef10 ECX=ffffffb5 DS=0187 ESI=00000000 FS=5bbf EDX=81d7d520 ES=0187
2002 Jul 21
3
Date arithmetic fails (PR#1819)
Full_Name: Ronnen Levinson Version: 1.5.1 OS: Mac OS 10.1 Submission from: (NULL) (12.232.201.92) The value returned by strptime behaves badly after arithmetic operation and/or combination. > a=strptime("2002-06-01 12:15:01","%Y-%m-%d %H:%M:%S") > a [1] "2002-06-01 12:15:01" > a+0 [1] "1932-04-25 21:46:45" > a+3600 [1] "1932-04-25
2005 Mar 28
2
Generating list of vector coordinates
Hi. Can anyone suggest a simple way to obtain in R a list of vector coordinates of the following form? The code below is Mathematica. In[5]:= Flatten[Table[{i,j,k},{i,3},{j,4},{k,5}], 2] Out[5]= {{1,1,1},{1,1,2},{1,1,3},{1,1,4},{1,1,5},{1,2,1},{1,2,2},{1,2,3},{1 ,2,4},{1,2, 5},{1,3,1},{1,3,2},{1,3,3},{1,3,4},{1,3,5},{1,4,1},{1,4,2},{1,4,3}, {1,4,
2003 Aug 13
1
Contour plot for arbitrary (x,y,z)
Hello. Is there an easy-to-use contour plot function analogous to scatterplot3d that can draw handle a dataset of arbitrary (x,y,z) triplets? That is, say x, y, and z are each measured quanties, and exhibit neither order nor regularity. I looked at the lattice package function "contourplot" but it seems complicated, and it's not clear from the documentation whether it can
2005 Apr 27
1
Closing RGui help windows
Hi. I often wind up with many help windows cluttering my RGui screen when running Windows R 2.0.1. Is there an R instruction to close one or more help windows, or an RGui command to close all help windows? Yours truly, /Ronnen. /P.S. E-mailed CC:s of posted replies appreciated. [[alternative HTML version deleted]]
2009 Apr 27
1
Plotting polynomial fit
Hi. Is there an analog to abline() that can be used to plot a polynomial fit? For example, I can draw the straight-line fit fit <- lm(y ~ x) via abline(coef=fit$coef) but I'm not sure how to draw the polynomial fit fit <- lm(y ~ poly(x,2)) I do see the function curve(), but not how to prepare an expr for curve() based on the coefficients returned by the polynomial
2003 Sep 16
7
Retrieve ... argument values
Dear R users, I want to retrieve "..." argument values within a function. Here is a small exmaple: myfunc <- function(x, ...) { if (hasArg(ylim)) a <- ylim plot(x, ...) } x <- rnorm(100) myfunc(x, ylim=c(-0.5, 0.5)) Error in myfunc(x, ylim = c(-0.5, 0.5)) : Object "ylim" not found > I need to retrieve values of "ylim" (if it is defined
2002 Jul 21
2
Trouble With Dates; Recommended Reference?
Hi. I'm having a little difficulty with R1.5.1. To wit: (1) Can anyone explain the following behavior? > a=strptime("2002-06-01 12:15:01","%Y-%m-%d %H:%M:%S") > a [1] "2002-06-01 12:15:01" > a+0 [1] "1932-04-25 21:46:45" > a+3600 [1] "1932-04-25 22:46:45" (2) Can anyone recommend an introductory R text other than that
2004 Oct 18
2
答复: How to draw x-axis time label.
Thank you for helping me! I try the "pretty" funtion to select the x-axis position value.Then I use the "format" funtion. xax.pos <- pretty(as.numeric(x$x.name)) format(xax.pos,'%d %b %y') > xax.pos [1] 1091600000 1091800000 1092000000 1092200000 1092400000 1092600000 1092800000 [8] 1093000000 There are something wrong. I found the xax.pos has been changed to
2018 Jun 22
2
Q: how can I request to add an upstream patch to resolve a core dump issue?
UPDATE: It turned out QEMU still dumped core with that patch applied. That said, I'm still interested to know how to report issues with QEMU from centos-virt repo. Thanks, Ray > -----Original Message----- > From: Xiong, Huan > Sent: 2018?6?22? 11:12 > To: 'centos-virt at centos.org' <centos-virt at centos.org> > Subject: Q: how can I request to add an upstream
2003 Aug 06
1
Standard error of standard deviation: bootstrap or theoretical results?
Dear R users, This is more a statistical question rather than an R question. I'd appreciate it if you can give me some suggestions. I have a sample of a time series (sample size 500, fat tail in density). I am trying to calculate the Standard error of standard deviation of a sub-block-sample (sample size 250). I take 100 this kind of sub-block-sample, randomly. For these 100 subsamples, I
2003 Jan 15
1
Least Absolute Deviation
Dear all, I try to fit least absolute deviation (LAD) regression with R. I couldn't find any command to carry out LAD. What I am doing now is using nlm() and setting the function argument to minimize the sum of the absolute deviation. But for some data it keeps giving out the error message: Error in nlm(absdev, b.start) : non-finite value supplied by nlm. (there is no na in my dataset.) I
2005 Apr 20
2
Package under R 2.1.0: package.rds
Hi everybody, I have trouble installing my own package under R 2.1.0 (it is fine under R 2.0.1). My OS is Windows NT. I installed my package 'mag' by using menu "Packages/Install package from local zip files....". It's fine (html package description was updated). But when I typed in library(mag) it gave me error: Error in library(mag) : there is no package called
2002 Aug 04
5
Pseudo R^2 for logit - really naive question
I am using GLM to calculate logit models based on cross-sectional data. I am now down to the hard work of making the results intelligible to very average readers. Is there any way to calculate a psuedo analoque to the R^2 in standard linear regression for use as a purely descriptive statistic of goodness of fit? Most of the readers of my report will be vaguely familiar and more comfortable with