Re: [R] Knitr, ggplot and consistent fonts

2013-12-23 Thread Daniel Haugstvedt
hing for > Latex but R crashed. > > I think there is an embedded character/s before the first chunk and in the > first chunk. > > Duncan > > Duncan Mackay > Department of Agronomy and Soil Science > University of New England > Armidale NSW 2351 > Email: home: mac...

[R] Fwd: Knitr, ggplot and consistent fonts

2013-12-22 Thread Daniel Haugstvedt
I am forwarding to r-help just in case anyone else where wondering or have the same problem running the example. Cheers D -- Forwarded message -- From: Daniel Haugstvedt Date: Sun, Dec 22, 2013 at 11:54 PM Subject: Re: [R] Knitr, ggplot and consistent fonts To: John Kane Hi

[R] Knitr, ggplot and consistent fonts

2013-12-22 Thread Daniel Haugstvedt
been smaller, but they just became too ugly for me \documentclass{article} \begin{document} <>= library(knitr) library(ggplot2) @ \title{Knitr and ggplot2} \author{Daniel Haugstvedt} \maketitle There are four plots in this article. Figure \ref{fig:plot-figHeight} uses the argument fig.heig

Re: [R] From POSIXct to numeric and back with time zone

2013-08-24 Thread Daniel Haugstvedt
On Fri, Aug 23, 2013 at 7:12 PM, David Winsemius wrote: > > On Aug 23, 2013, at 3:12 AM, Daniel Haugstvedt wrote: > > > I am replying to my own question in case someone else finds this tread > and needs help with the same problem. Thanks to Mark Leeds for helping me > on

Re: [R] From POSIXct to numeric and back with time zone

2013-08-23 Thread Daniel Haugstvedt
hem are attached at the end. 3) If a time zone is not needed the tz argument does nothing. It sets the tzone but it does not change it. 4) The origin is assumed to be UTC regardless of what Sys.timezone() say as long as no time zone for the origin is specified. I checked this by changing the Sys.

[R] From POSIXct to numeric and back with time zone

2013-08-22 Thread Daniel Haugstvedt
t; ) [1] "2000-01-29 23:00:00 CET" Which is "2000-01-30 UTC". Choosing set the time zone to be UTC in both conversions, as.POSIXct( as.numeric( as.POSIXct( '2000-01-30', origin = '1970-01-01', tz = "UTC" ) ), origin = '1970-01-01

[R] Dates as POSIXt

2012-11-04 Thread Daniel Haugstvedt
: int [1:2015] 15 15 15 15 15 15 15 15 15 15 . . . [list output truncated] Now I wonder why I can't use POSIXlt in my data frame (I know I shouldn't but that is not the question) and if I can use POSIXt like the original data? It is human readable but also suited for calculation (e

[R] subject: Log likelihood above 0

2010-10-05 Thread Daniel Haugstvedt
Hi - In an effort to learn some basic arima modeling in R i went through the tutorial found at http://www.stat.pitt.edu/stoffer/tsa2/R_time_series_quick_fix.htm One of the examples gave me a log likelihood of 77. Now I am simply wondering if this is the expected behavior? Looking in my text book