Re: [R] plotting over a raster image with control over location and orientation

2015-08-22 Thread ravi
Hi,I havetried to find a simple way for my overlay plot. A simple summary of myapproach would to first plot the raster image and then overlay the second pot with : par(new=TRUE,plt=c(x1,x2,y1,y2)) # not sure if the plt or usr argument should be used# have some difficulty in knowing the units for

Re: [R] plotting over a raster image with control over location and orientation

2015-08-22 Thread ravi
Hi,I am sorry for not having control checked the code before posting (in my earlier mail). I have done this now. I just have a simple question now. Why is the overlay plot (the final plot ) not falling into the intended position (as defined by the viewport vp2)?#Setting up the initial example r

[R] Date as Integer

2015-08-22 Thread Shivi82
Hi All, I am using dplyr package and need to find total bills booked grouped on a date level however my date is integer. In the code below i was trying to change date format from integer. However it is throwing an error: "no applicable method for 'group_by_' applied to an object of class "c('int

Re: [R] fill color in boxplot and change number in scale

2015-08-22 Thread John Kane
Data? Please use dput() John Kane Kingston ON Canada > -Original Message- > From: eladlaza...@gmail.com > Sent: Fri, 21 Aug 2015 11:52:52 -0700 (PDT) > To: r-help@r-project.org > Subject: Re: [R] fill color in boxplot and change number in scale > > I want to change the numbers in scale

Re: [R] Date as Integer

2015-08-22 Thread Jeff Newmiller
Use mutate to change the date before you use group_by. Posting incomplete fragments in your questions is usually not enough to get useful help with R on the internet. Please add the extra few lines of code that would make it reproducible [1] from now on. [1] http://stackoverflow.com/questions/

[R] Multrix-vector multiplication

2015-08-22 Thread Steven Yen
I had trouble with matrix multiplication when a matrix reduces to a vector. In the following, lines 1 and 2 work when matrices u and a are both of order 2. Lines 3 and 5 do not work (message is matrix not conformable) when u is (T x 1) and a is (1 x 2) and This causes a problem for users of other

Re: [R] Output In R

2015-08-22 Thread John Kane
We are talking at cross-purposes here because SAS and R are radically different beasts. Just about everything you did in SAS does not work / is wrong /i s illegal/ is immoral / and possibly fattening. If you have not seen it, you may find Bob Muenchen's pdf and/or the expanded book R FOR SAS AN

Re: [R] Output In R

2015-08-22 Thread Marc Schwartz
> On Aug 22, 2015, at 8:49 AM, John Kane wrote: > > We are talking at cross-purposes here because SAS and R are radically > different beasts. Just about everything you did in SAS does not work / is > wrong / is illegal / is immoral / and possibly fattening. Fortune candidate! :-) Regards,

Re: [R] Date as Integer

2015-08-22 Thread John Kane
Do an str() on the data. It looks like your variable is an integer where you probably need a date or a factor. Would you please include some sample data if possible. See ?dput which is the preferred way for sending sample data. It ensures that the reader is looking at the exact same data that y

Re: [R] Multrix-vector multiplication

2015-08-22 Thread Jeff Newmiller
The actual types of data you have are critical to understanding your problem, and you have not provided that information. [1] What looks like a matrix isn't always, and in R vectors do not have a "column" or "row" nature, so matrix multiplication is not necessarily well-defined. To get consisten

Re: [R] Output In R

2015-08-22 Thread John Kane
Hi Shivi, A correction to my latex/knitr code. I stupidly forgot the initial problem was the length of the data set. To get it to print correctly we need to use the LaTeX package 'longtable'. Clearly too many trees for me to see the forest. Add \usepackage{longtable} to the Preamble. #===

[R] Build R with optimized BLAS library

2015-08-22 Thread arnaud gaboury
I want to build R with an optimized BLAS library. My OS: Fedora 22 Hardware: CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 8 Thread(s) per core: 2 Vendor ID: GenuineIntel Model name: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz I am a little confused when it comes to choose a method

Re: [R] Build R with optimized BLAS library

2015-08-22 Thread Jeff Newmiller
Questions about compiling generally belong on R-devel. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live

Re: [R] Build R with optimized BLAS library

2015-08-22 Thread arnaud gaboury
On Sat, Aug 22, 2015, 5:12 PM Jeff Newmiller wrote: Questions about compiling generally belong on R-devel. Ok. Sorrx fpr the noise --- Jeff NewmillerThe . . Go Live... DCN:

Re: [R] Date as Integer

2015-08-22 Thread William Dunlap
It would help if you supplied a small dataset so we could reproduce your problem problem. Here is one that gives the same error. (I also moved some parentheses around so "%y-%m-%d" is an argument to as.Date() instead of to group_by().) data.frame(pickdate=paste(sep="-",15,08,c(21,22,21,22,22)),

[R] [R-pkgs] pls 2.5-0 released

2015-08-22 Thread Bjørn-Helge Mevik
Version 2.5-0 of the pls package has been released. The pls package implements Partial Least Squares Regression, Principal Component Regression and Canonical Powered PLS. The major changes are: - Cross-validation can now make sure that replicates are kept in the same segment, by the use of a n

Re: [R] Generalised poisson regression

2015-08-22 Thread David Winsemius
On Aug 22, 2015, at 8:40 AM, Babatunde Yakub wrote: > Using object$deviance for generalised poisson regression model gives NULL as > response. Code attached. please checkthanks I'm not attacking your manhood when I say that your attachments are a problem. The only person who can see that a

Re: [R] Generalised poisson regression

2015-08-22 Thread Bert Gunter
Dare I say... On Sat, Aug 22, 2015 at 1:17 PM, David Winsemius wrote: > > I'm not attacking your manhood when I say that your attachments are a problem. Fortune Nomination! Cheers, Bert __ R-help@r-project.org mailing list -- To UNSUBSCRIBE a