Re: [R] Text showing when R is launched

2023-10-12 Thread George Loftus
there which I have since deleted but I am still getting the same issue Thankyou, George From: Rui Barradas Sent: 10 October 2023 12:06 To: George Loftus ; r-help@r-project.org Subject: Re: [R] Text showing when R is launched �s 23:56 de 09/10/2023, George L

[R] Shaded area

2023-03-01 Thread George Brida
Dear R users, I have an xlsx file (attached to this mail) that shows the values of a "der" series observed on a daily basis from January 1, 2017 to January 25, 2017. This series is strictly positive during two periods: from January 8, 2017 to January 11, 2017 and from January 16, 2017 to January 2

[R] Logistic regression for large data

2022-11-11 Thread George Brida
t. Is there any other function for logistic regression that handle large data and return output in reasonable time. Many thanks Kind regards George __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/list

Re: [R] Mapping of groups of countries

2022-01-02 Thread george brida
Thanks a lot Jim. I really appreciate your help. Happy new year 2022. George On Wed, Dec 29, 2021 at 10:10 PM Jim Lemon wrote: > Hi George, > This example is obviously a mess, but it shows the basic elements. The > labels may be placed manually using something like boxed.labels > (p

[R] Mapping of groups of countries

2021-12-29 Thread george brida
m and ylim. Can you please help me, I will be very grateful. Best regards George [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do rea

Re: [R] Cars2

2021-08-19 Thread George Bellas
Thanks Ivan, I was a fool. That�s the one I am looking for. Best, George From: Ivan Krylov Sent: Thursday, August 19, 2021 5:32:43 PM To: George Bellas Cc: r-help@r-project.org Subject: Re: [R] Cars2 On Thu, 19 Aug 2021 00:12:51 + George Bellas wrote

[R] Cars2

2021-08-17 Thread George Bellas
tried calling it on my version of R4.0.5 (backdated so Shiny works), but I can't find it anymore. Thanks, George [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.

Re: [R] Mapping of countries

2020-04-01 Thread george brida
> col="black", pos=3, cex=1) > > station$Lon and Lat in your coordinate position. > > Regards, > Ani > > > On Tue, Mar 31, 2020 at 10:58 PM george brida > wrote: > > > > Dear Jim, > > > > Is it possible to add also a title to this m

Re: [R] Mapping of countries

2020-03-31 Thread george brida
Dear Jim, Is it possible to add also a title to this map? Many thanks On Tue, Mar 31, 2020 at 2:29 PM george brida wrote: > Dear Jim, > > Thank you very much. I obtained now the required map. I would like to know > how to add the names of the countries. > > Best > Geor

Re: [R] Mapping of countries

2020-03-31 Thread george brida
ing on what you plan to do with your maps. > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along > and sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > On Mon, Mar 30,

Re: [R] Mapping of countries

2020-03-31 Thread george brida
Dear Jim, Thank you very much. I obtained now the required map. I would like to know how to add the names of the countries. Best George On Tue, Mar 31, 2020 at 10:10 AM Jim Lemon wrote: > Hi George, > Try this: > > library(maps) > map("world",xlim=c(34.353,6

Re: [R] Mapping of countries

2020-03-31 Thread george brida
Hi Erin, Thanks for the reply. I would like to have just those countries on the map. Best George On Tue, Mar 31, 2020 at 5:02 AM Erin Hodgess wrote: > Hello George! > > Do you mean to have a map of the world with these countries filled in, or > to have just those countries on the

[R] Mapping of countries

2020-03-30 Thread george brida
Dear R users, i would like to plot the maps of the Gulf Cooperation Council (GCC) countries (KSA, Qatar, Bahrain, Kuwait, UAE and Oman) with these constraints: i/ KSA , Qatar and Bahrain have the same face color , ii/ Kuweit and UAE with the same face color and iii/Oman with another face color. I

[R] power analysis for Friedman's test

2019-04-18 Thread George Karavasilis
Hello, I am running a non parametric repeated measures experiment with Friedman’s test:     Friedman rank sum test data:  glikozi and week and subject Friedman chi-squared = 18.538, df = 3, p-value = 0.0003405 How could I run a power analysis for this test in R? Thank you! -- George

Re: [R] Problem with r project in ubuntu xenial

2017-11-07 Thread George Balas
If there are errors installing devtools just install any package that comments. On Nov 5, 2017 00:07, "George Balas" wrote: > -Well it seems that it is getting "el_GR.UTF-8" but still I am not able > to read files written in greek, there are only "" instead of let

Re: [R] Problem with r project in ubuntu xenial

2017-11-04 Thread George Balas
packages dialog I can not see functions with underscores between words, only dots. 2017-11-04 2:22 GMT+02:00 David Winsemius : > > > On Nov 3, 2017, at 5:09 PM, peter dalgaard wrote: > > > > > >> On 3 Nov 2017, at 23:39 , George Balas wrote: > >> > &g

[R] Problem with r project in ubuntu xenial

2017-11-03 Thread George Balas
;print_all"". I am using R version 3.4.2 (2017-09-28) -- "Short Summer" either on rstudio or ubuntu terminal. On my pc I also run win 10 with the same installs and I do not have the above problems, but I work on ubuntu and can not change Os all the time. Please help me. Than

Re: [R] Wireframe plot inside a function

2017-04-21 Thread George Trojan - NOAA Federal
uot;cop1 function")) > > -- > Sent from my phone. Please excuse my brevity. > > On April 21, 2017 1:56:00 PM PDT, George Trojan - NOAA Federal > wrote: >>I see. So, if I don't care about the plot object itself, the proper >>incantation is >> >>plot

Re: [R] Wireframe plot inside a function

2017-04-21 Thread George Trojan - NOAA Federal
es together > you will find that something like knitr and RMarkdown are very helpful. > -- > Sent from my phone. Please excuse my brevity. > > On April 21, 2017 11:59:28 AM PDT, George Trojan - NOAA Federal > wrote: >>Thanks. After changing the function to >> >>cplot

Re: [R] Wireframe plot inside a function

2017-04-21 Thread George Trojan - NOAA Federal
e, does it mean it is plotted twice now? Looks as a strange design. I did check the "Plain text mode" in Chrome, you should see only the text part. George On 21 April 2017 at 16:27, Jeff Newmiller wrote: > FAQ 7.22 > And don't send HTML email... you are the one making it d

Re: [R] Interesting quirk with fractions and rounding

2017-04-21 Thread George Trojan - NOAA Federal
, Vol 23, No 1, 1991. Available here: http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.22.6768 George I suggest you read some basic books on numerical analysis and/or talk > with a numerical analyst. You are (like most of us) an amateur at this > sort of thing trying to reinvent whee

[R] Wireframe plot inside a function

2017-04-21 Thread George Trojan - NOAA Federal
t; is blank, the wireframe is not plotted. This is R 3.3.1, on Fedora 20. I see similar behaviour on Fedora 24, R 3.3.3 when I run the code from RStudio (the most recent one). George [[alternative HTML version deleted]] __ R-help@r-project.org m

[R] Question about logspline

2017-02-21 Thread George Trojan - NOAA Federal
lt;- as.numeric(sapply(ds, function(x) sprintf("%.1f", x))) > s2 <- logspline(ds2) > lines(x, dlogspline(x, s2), col = "blue") > ds3 <- fuzz(ds2, 0.1) > s3 <- logspline(ds3) > lines(x, dlogspline(x, s3), col = "green") > George [[

Re: [R] Help with saving user defined functions

2017-02-12 Thread George Trojan - NOAA Federal
ion -- if tmp is removed the > function will fail. > > > > Cheers, > Bert > > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along > and sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloo

[R] Help with saving user defined functions

2017-02-12 Thread George Trojan - NOAA Federal
p); cdf(0); qnorm(cdf(x)) * 0.99 } > saveRDS(trans, "/tmp/foo") Save workspace image? [y/n/c]: n > trans <- readRDS("/tmp/foo") > trans function(x) { cdf <- ecdf(tmp); cdf(0); qnorm(cdf(x)) * 0.99 } > trans(0) Error in sort(x) : object 'tmp'

[R] diff doesnot work

2017-02-06 Thread george brida
Dear R users, I have a txt file entitled coc composed by one column of numeric values without header and having 50 rows. This file is under the following path: C:\\Users\\intel\\Documents\\TR I have written the following lines: xcx=read.table("C:\\Users\\intel\\Documents\\TR\\coc.txt",header=F)

[R] R2Cube integration errors

2017-01-26 Thread George Trojan - NOAA Federal
: 52000; probability: 0 failed with message ‘Dimension out of range’ > suave(ndim=1, ncomp=1, f) . . . [1] 0 +- 7.02462e-17chisq 0 (411 df) integral: 0 (+-7e-17) nregions: 50; number of evaluations: 5; probability: 0 failed with message ‘Dimension out of range’ Is this a bug? G

[R] rgl does not plot

2017-01-19 Thread George Trojan - NOAA Federal
3d() does not do anything. rgl.quit() closes the windows, as expected. I am running Fedora 24 Scientific, NVIDIA video card with NVIDIA proprietory driver that supports GLX. Any idea where to look for a solution? George [[alternative HTML version deleted]]

[R] gamlss question

2016-12-22 Thread George Trojan - NOAA Federal
= tau) } Alternatively, I could write functions to emulate logspline calls to density estimation. I suspect I must be missing something obvious. I am relatively new to R. George [[alternative HTML version deleted]] __ R-help@r-project.org mailin

Re: [R] Matrix multiplications

2016-05-21 Thread george brida
Thank you very much Peter. On Sat, May 21, 2016 at 9:18 PM, peter dalgaard wrote: > > > On 21 May 2016, at 21:00 , george brida wrote: > > > > Dear R users: > > > > I have written the following lines : > > > >> x=c(10,11,12,13,14,17,15,16,10,1

Re: [R] Matrix multiplications

2016-05-21 Thread george brida
10 PM, Roy Mendelssohn - NOAA Federal < roy.mendelss...@noaa.gov> wrote: > > str(t(y-X %*% b)) > num [1, 1:10] 0.595 -1.7538 -0.0498 -1.651 -0.6328 ... > > str((y-X %*% b)) > num [1:10, 1] 0.595 -1.7538 -0.0498 -1.651 -0.6328 … > > -Roy > > > > On M

[R] Matrix multiplications

2016-05-21 Thread george brida
[,1] [1,] 3.620354 Can you please help me. Thank you George [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting g

[R] R cannot allocate a vector of size 5.4mb

2016-04-11 Thread Jijo Sunny George
Hi, I am trying to do mixed integer programming using R & Java. My input is a list of flight legs which is proportional to the number of times the loop is executed. The input is fed from java to R. I cannot avoid the for loops as it is part of the logic. I am running into a "cannot allocate a v

[R] [R-pkgs] New package 'netdiffuseR: Network Analysis for Diffusion of Innovations'

2016-02-22 Thread George Vega Yon
to be installed. For those of you who are interested on taking a deep look on this new tool, we will be offering a workshop at the 2016 SUNBELT Conference (http://insna.org/sunbelt2016/) , so we encourage you to sign in! Best, George G. Vega Yon +1 (626) 381 8171 http:/

[R] SEM specify RAM model

2014-06-04 Thread George Parish
manually input each line individually. Can I simply supply the SEM method with a matrix like the one I have above? Thanks,George [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

[R] New to R

2014-02-27 Thread George Katsuras
I successfully downloaded and loaded the stockPortfolio and quadprog packages, but when I entered the following command I got an error: returns <- getReturns(names(stocks), freq="week") Error in file(file, "rt") : cannot open the connection In addition: Warning message: In file(file, "rt") : can

Re: [R] Problem with plm package

2014-01-29 Thread george brida
Ah ok. the problem is somewhat great, I can't rewrite it in txt file. On Wed, Jan 29, 2014 at 10:48 PM, george brida wrote: > Ah ok. the problem is somewhat great, I can't rewrite it in txt file. > > > On Wed, Jan 29, 2014 at 9:52 PM, arun wrote: > >> HI George

Re: [R] Problem with plm package

2014-01-29 Thread george brida
Hi Arun you can't open the file? On Wed, Jan 29, 2014 at 9:23 PM, arun wrote: > Hi, > Your attachment didn't came through. > A.K. > > > > > > On Wednesday, January 29, 2014 12:03 PM, george brida < > george.br...@gmail.com> wrote: > Dear

[R] Problem with plm package

2014-01-29 Thread george brida
quot;) I obtained the following message: Error in Math.factor(x) : cumsum not meaningful for factors In addition: There were 50 or more warnings (use warnings() to see the first 50) where's the problem? can you please help me Thank you in advance George _

[R] How can I cluster a set of formulae?

2014-01-26 Thread Professor George F.Hart
ively, I might be climbing up/down the wrong tree [pun intended]. Other methods might be better. Help! George F. Hart I'm sending this to a number of statistics groups so apologize if you get this note more than once. __ R-help@r-project.org ma

Re: [R] unable to carry through object in a nested function

2014-01-22 Thread Chen, George
Hi, This is a resend of a previous message reproduced below but with sample data to run. Thanks. George Chen Hi There, I am having trouble carrying through an object listed in the outer function into the inner function of a nested pair. sample data below - library(plyr

[R] unable to carry through object in a nested function

2014-01-22 Thread Chen, George
ld is not being passed into FindGreaterThanProportion. Any help would be appreciated to determine what I am doing incorrectly. Thanks in advance. George Chen This email message may contain legally privileged and/or confidential information. If you are not the intended recipient(s), or the

[R] How do I perform conditional annotation of lattice panel plots?

2014-01-07 Thread Chen, George
My apologies for asking this question that may have been asked before. I am trying to plot activity dependent on time conditioned by the subject. Code for sample data below. So I have something like this xyplot(Activity~Time|Subject). This works fine, but now I want to show where on these activ

Re: [R] Difference between arima(1, 1, 1) of y and arima(1, 0, 1) of diff(y)

2013-07-18 Thread George Milunovich
Hi Mark, This is very helpful!! Much appreciated Sent from my iPad On Jul 19, 2013, at 3:51 AM, Mark Leeds wrote: > Hi George: Assuming it's still relevant, the link below will explain why. > > http://www.stat.pitt.edu/stoffer/tsa2/Rissues.htm > > > > On Th

[R] Difference between arima(1, 1, 1) for y and arima(1, 0, 1) for diff(y)

2013-07-18 Thread george
Dear all, When I run an arima(1,1,1) on an I(1) variable, e.g. y, I get different estimates to when I first difference the variable myself, e.g y2<-diff(y), and then run arima(1,0,1) on y2. Shouldn't these two approaches give the same output? Any help will be much appreciated. george

Re: [R] restrected arima models

2013-07-18 Thread george
Thanks Sent from my iPhone On 19/07/2013, at 1:43 AM, "Prof Brian Ripley [via R]" wrote: > On 18/07/2013 16:14, george wrote: > > Dear all, > > Does anyone know if it is possible to estimate restricted arima models > > using > > the arima command in

[R] Difference between arima(1, 1, 1) of y and arima(1, 0, 1) of diff(y)

2013-07-18 Thread George Milunovich
Dear all, When I run an arima(1,1,1) on an I(1) variable, y, I get different estimates to when I first difference the variable myself, e.g y2<-diff(y), and then run arima(1,0,1) on y2. Shouldn't these two approaches give the same output? Any help will be much appreciated

[R] restrected arima models

2013-07-18 Thread george
help will be much appreciated. george -- View this message in context: http://r.789695.n4.nabble.com/restrected-arima-models-tp4671847.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https

Re: [R] fonts not rendering during plot

2013-04-24 Thread George Dietz
s with the paths pango looks uses to search for font configuration files. I solved it by writing a script that sets these paths at run-time. George On Apr 24, 2013, at 7:45 PM, David Winsemius wrote: > > On Apr 24, 2013, at 7:29 AM, George Dietz wrote: > >> Hi, >>

[R] fonts not rendering during plot

2013-04-24 Thread George Dietz
not change… Thank you, -George __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] Nomogram after Cox Random Effect (frailty) model

2013-02-14 Thread george boul
a nomogram directly after the coxme survival function? 2. If not is there a way to take the linear predictor results and plug them into the RMS cox model and get the nomogram I want? Any instructions/suggestions would be highly appreciable? Thank you in advance George Dr. George Bouliotis Research

Re: [R] How to drop unused factors in faceted R ggplot boxplot?

2013-01-24 Thread Gorczynski, George
Hi and thanks. This unfortunately doesn't work because: "ggplot2 does not currently support free scales with a non-cartesian coord or coord_flip." -Original Message- From: arun [mailto:smartpink...@yahoo.com] Sent: January-24-13 1:49 PM To: Gorczynski, George Cc: R help

[R] Fwd: Simulation of spatial Log-Gaussian Cox process in Spatstat

2012-12-07 Thread George Limitsios
ion window ‘win’ I've used covariates as im, changed the npixel value of the spatstat options to match the dimensions of the covariates images, but the problem keeps showing up. Maybe it has something to do with the irregular owin used as window of the ppp object? I'd appreciate any h

[R] parApply computing

2012-11-20 Thread George
I'm using /parApply/() function in "snow" package for parallel computing (boostrapping repeating calculation), as the follows: MyBoostrapping <- function( i ){ . } cl <- makeCluster( ncluster, type = "SOCK") i.circle <- as.matrix( 1:128, , 1) parApply( cl, i.circle, 1, FUN = MyBoostrappi

[R] Write to MS SQL Database

2012-11-14 Thread George
I want to update a column of a database table (in MS SQL) using sqlUpdate( ) or sqlSave( ) function in "RODBC" package. E.g. SQLchannel is the database connection; SQLtable is the destination table in the database, including at least two columns, ID and Value; Xdata is a data frame in R environment

[R] How do I exactly align the right hand side of "mtext" relative to a plot device? Beyond "adj".

2012-01-18 Thread George Shirreff
### v1 dev.new() plot(c(0,1),c(0,1),ylim=c(0,2)) legend("topright",c("data1","data2"),col=c(1,2),lty=1,bty="n") mtext("text",side=3,line=-2,adj=0.8) ### v2 dev.new() plot(c(0,1),c(0,1),ylim=c(0,2)) legend("topright",c("data

[R] cp2tform equivalent

2011-12-17 Thread George Macaulay Shaw
I'm a new R user and am looking for an R equivalent to the Matlab 'cp2tform' function (see: http://www.mathworks.com/help/toolbox/images/ref/cp2tform.html). cp2tform accepts pairs of 2D control points and produces a least-squares optimized spatial transformation from one set of points to the ot

[R] no non-missing arguments to max; returning -Inf

2011-12-11 Thread George Kumar
Hi, I just wanted to object of class xts, zoo and I got the error no non-missing arguments to max; returning -Inf After all the values were printed. Tried searching on this forum, but no luck. Anyone has any idea ? Thanks. George -- View this message in context: http://r.789695.n4.nabble.com

Re: [R] Bruno's Panel LSDVC

2011-08-08 Thread George Matysiak
I'm repeating the post. Has anyone written a routine for this R? Thanks. -- View this message in context: http://r.789695.n4.nabble.com/Re-Bruno-s-Panel-LSDVC-tp3680824p3726719.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-p

Re: [R] Bruno's Panel LSDVC

2011-07-20 Thread George Matysiak
*Is there an implementation of this in R? Thanks. * [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.ht

Re: [R] question about linear regression and leverage

2011-06-21 Thread George Markomanolis
and the change on the result was not so important. I am working on computer science field but I wanted to do an analysis from scratch because some previous results that I have seen are not good for such cases. Moreover the data are not the same of course. Thanks, George On 06/21/2011 01:08 PM

[R] question about linear regression and leverage

2011-06-21 Thread George Markomanolis
these 250 points in my dataset or not? Could I do something else? The data are measured through an experiment so even these 250 points are real values. Thanks a lot, George __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] rcspline.plot query

2011-06-12 Thread Chalikias George
uot;ordinary") For both the commands I receive the same message : " fewer than 6 non missing observations". George -- View this message in context: http://r.789695.n4.nabble.com/rcspline-plot-query-tp3590233p3591679.html Sent from the R help mailing list archive at Na

Re: [R] mtext text size (cex) doesn't match plot

2011-05-12 Thread George Locke
thanks for reading the manual for me :X 2011/5/12 Prof Brian Ripley : > On Wed, 11 May 2011, George Locke wrote: > >> Hi, >> >> I am using mtext instead of the ylab argument in some plots because i >> want to move it away from the numbers in the axis.  Howe

[R] mtext text size (cex) doesn't match plot

2011-05-11 Thread George Locke
Hi, I am using mtext instead of the ylab argument in some plots because i want to move it away from the numbers in the axis. However, the text in the X axis, for example: par(mar=c(5, 5.5, 4, 2)); plot(data, main="plot name", xlab= 'X axis', ylab="", font=2, cex.lab=1.5, font.la

[R] text file problem-Solved!

2011-02-08 Thread George Pantop
Oh! (hits head) It was the working directory!!! Problem solved from Change Dir... Many thanks to Samuel and Duncan! George [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] text file problem-Help needed

2011-02-08 Thread George Pantop
d.txt': No such file or directory Can someone tell me what the problem is? Must i copy the text file somewhere else? Thank you in advance, George Pantopoulos [[alternative HTML version deleted]] __ R-help@r-project.org mailing list h

Re: [R] Read a similarity matrix from excel

2011-02-02 Thread George Kakarontzas
Dear Petr, It worked fine. Thanks for helping. George -Original Message- From: Petr PIKAL [mailto:petr.pi...@precheza.cz] Sent: Wednesday, February 02, 2011 1:18 PM To: George Kakarontzas Cc: r-help@r-project.org Subject: Odp: [R] Read a similarity matrix from excel Hi r-help-boun

[R] Read a similarity matrix from excel

2011-02-01 Thread George Kakarontzas
rform a hierarchical clustering. The table is 78x78 so it is relatively easy to manually change something if it makes it easier to read. I found many articles about reading a data table with variables and then constructing the distance matrix from within R, but I have the similarity matrix

Re: [R] Johnson Distribution Fit

2010-10-06 Thread Abey George
distribution to points data scored by teams. The result for any(data2 < 0.5 | data2 > 0.5+50) is TRUE. Thanks Abey On Mon, Oct 4, 2010 at 11:33 AM, David Winsemius wrote: > > On Oct 3, 2010, at 3:47 PM, Abey George wrote: > > Hi, >> I am trying to fit a Johnson SB distributio

[R] Johnson Distribution Fit

2010-10-03 Thread Abey George
Hi, I am trying to fit a Johnson SB distribution using fitdist function in fitdistrplus Library. I have defined the Johnson SB distribution from ( http://www.ntrand.com/johnson-sb-distribution/) . But it gives me the follwing errors. Any help would be appreciated #xi = xi #lambda =l #delta =

[R] Converting a line by line program into an array to perform summary stats

2010-09-29 Thread George Coyle
I am trying to turn several lines of information into a variable. I used the filx function to input my file then the readlines to qualify what I want. Essentially I have data in a file every 10 minutes through a day for several years down a column: date time value 9/28/10 02:00 13 9/28/10 0

[R] If statements for multiple arrays

2010-09-16 Thread George Coyle
Hello, I wrote this code which works fine on a single observation: x<-100 y<-200 z<-125 aa<-150 if(xz) {aa-z} result: 25 I am trying to apply this logic where x,y,z,and aa are arrays but with very little success. I have tried using loops and whiles but I always get errors of various types. I h

[R] Latex fonts in R graphics

2010-09-11 Thread KARAVASILIS GEORGE
Hello, R users. I am trying to embed Computer modern fonts to an R plot and I get the following error. CM <- Type1Font("CM", + c(paste("cm-lgc/fonts/afm/public/cm-lgc/", + c("fcmr8a.afm", "fcmb8a.afm", "fcmri8a.afm", "fcmbi8a.afm"), sep=""), + "./cmsyase.afm")) > pdf("cm.pdf",

[R] Does anybody know how to control the appearance of the end of the line in lattice?

2010-08-08 Thread George Chen
Source)<-c("x","y1","y2") Source<-data.frame(Source) xyplot(y2+y1~x, data=Source, distribute.type=TRUE, type=c("h","h"), col=c("black","white"), lwd=20) graphics.off() Thanks. Georg

[R] Nested if help

2010-07-16 Thread George Coyle
follows max out<-(cur_date,px2,time2,px3,time3) #output the high price/time and the immediately following price/time cat(out,"\n")} This code however, does nothing. Any help would be apreciated. The manuals seem to only take one so far. Thank

[R] Matrix to Vector

2010-06-15 Thread George Coyle
Hi All, I am trying to turn a Matrix into a vector for analysis purposes. I need to select only certain columns from the entire matrix for the vector (intraday time intervals). Also I need to transpose the Matrix (so times are in rows) stack each successive new column on top of each other (lates

Re: [R] Is it possible to rearrange the facets in ggplot while keeping everything else the same?

2010-05-09 Thread George Chen
Hi Dennis, It is similar to what I was trying to achieve. Is there a way to show the grouped time courses as separate facets. So in lattice, the time courses would be conditioned on Ab status and subject name at the same time. Thanks. George From: "Dennis Murphy" To: &q

[R] Is it possible to rearrange the facets in ggplot while keeping everything else the same?

2010-05-08 Thread George Chen
Ab are together and the Nos to Ab are together while keeping the same labeling? Thanks in advance. George Chen __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/po

Re: [R] R-help Digest, Vol 87, Issue 6

2010-05-06 Thread George Chen
advance! George __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] How do I plot geoms in parallel in ggplot

2010-05-06 Thread George Chen
or where to start looking to figure this out? I suspect it involves a layer for each time course, but how does one move the time course for say weight over so that it does not overly that for height? Thanks in advance! George __ R-help@r

[R] How to change a venn command into a named object that can be plotted like a lattice object

2010-02-22 Thread George Chen
Hello, I am plotting data as a venn diagram but would like to be able to control how it is plotted like a lattice object. Right now, it plots right away. I would like to name it and then plot at will. I thought to convert the whole thing to a PostScript file then get it back into R via grImport

Re: [R] mysterious extra spaces appearing in expression paste

2010-02-05 Thread George Locke
(1,2),lwd=3, y.intersp = 2.0,adj=c(0,1.5)) becomes leg <- c("data1",expression(paste("(",rho,"=1)")), "data2", expression(paste("(",rho,"=0.0)"))) legend("bottomright",legend=leg,col=c(1,1,2,1), lty=(1,0,1,0), lwd=3) not

[R] mysterious extra spaces appearing in expression paste

2010-02-02 Thread George Locke
c(1,2),lwd=3, y.intersp = 2.0,adj=c(0,1.5)) the problem is that lots of extra space appears between the open parenthesis and the rho. what can be done? (i'm running version 2.10.1 (2009-12-14) on fedora 12) Thanks! George Locke __ R-help@r-p

[R] How do I juxtapose two lattice graphs with common X axes such that the X axes line up?

2010-01-20 Thread George Chen
sition = c(0,.15,1,1)) plot (lower, newpage=FALSE, more=TRUE, position = c(0,0,1,.3)) George __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project

Re: [R] How to change the default Date format for write.csv function?

2009-12-28 Thread George . Zou
Nice try, but that will turn off quote for all fields. I want quotes for text fields, and no quotes for date and numeric fields. Please see the desired CSV output in my previous email. George From: Henrique Dallazuanna To: george@bnymellon.com Cc: r-help@r-project.org Date: 12/28

Re: [R] How to change the default Date format for write.csv function?

2009-12-28 Thread George . Zou
output of CSV I'm looking for should be: "ticker","date","price" "IBM",12/03/2009,120 "IBM",12/04/2009,123 Not this: "ticker","date","price" "IBM","12/03/2009",120 "IBM","12/04/2

[R] How to change the default Date format for write.csv function?

2009-12-28 Thread George . Zou
t;date","price" "IBM",2009-12-03,120 "IBM",2009-12-04,123 I would like to have the date fields in the CSV formatted as "MM/DD/". Is there any easy way to do this? Thanks in advance. George Zou The information contained in this e-mail, and any attac

Re: [R] how to output profile plots for groups using lattice package

2009-10-13 Thread George Kalema
A million thanks Peter, subsetting fixed it. George On Mon, Oct 12, 2009 at 11:51 PM, Peter Ehlers wrote: > Hi George, > > Your problem is not with xyplot, but with the NA occurrences in > your data. Try adding > > subset = {!is.na(MSE)}, > > to your xyplot call, or (

Re: [R] how to output profile plots for groups using lattice package

2009-10-12 Thread George Kalema
NA")), points = list(pch = 1:2)) ) plot(tp1.sim) I have attached my real dataset (called datos) as well. Kind appreciations to your efforts. George On Wed, Oct 7, 2009 at 9:20 AM, Peter Ehlers wrote: > see below > > George Kalema wrote: > >> Dear R users, >> I

[R] how to output profile plots for groups using lattice package

2009-10-06 Thread George Kalema
a 4 30 0.13 g2 b 4 30 0.12 g2 a 8 30 0.13 g2 b 8 30 0.12 g2 Many thanks in advance for your response. George [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] How can I use event.chart (Hmisc) to work with a single row of data?

2009-09-30 Thread George Chen
, George Chen __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] Tex fonts in R plots

2009-07-07 Thread KARAVASILIS GEORGE
Hello, R users. I would like to display the font of Math Mode of MikTex 2.3, WinEdt 5.4 in R plots, e.g. in xlab, ylab or legend. How can I do that? Thank you in advance. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-hel

[R] kohonen SOM

2009-06-01 Thread George Chen
suggest a way to keep the data binary, even in the SOM plot? Thanks a lot. George __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

[R] mapply

2009-05-30 Thread KARAVASILIS GEORGE
Hello, R users. I would like to count the number of triples (r_i, s_j, t_k) with r_i, s_j, t_k distinct and abs((r_i-t_k)-u)=0 and abs((s_j-t_k)-v)=0, where r_i, s_j, t_k are the elements of three vectors a,b,c with different lengths and u,v=1:n. I have solved this problem writing a subroutine

[R] Drawing schematics

2009-05-28 Thread George Chen
information from the database such as time of treatment and type of treatment. Does anybody know how I can do this? Is there a premade R package for this sort of thing or should I try to make a new graphics function? If a new graphics function, where could I start? Thanks in advance. George

[R] avoid a loop

2009-05-28 Thread KARAVASILIS GEORGE
Hello, R users. I have the following code: a=1:10 b=-3:15 n=5 x <- rep(0,n) for (i in 1:n) x[i] <- sum( outer(a,b, function(s,t) abs(a-b-i)==0) ) Can someone tell me if I could avoid the for command? Thank you in advance. __ R-help@r-project.org mai

[R] problem with normalize.quantiles

2009-05-07 Thread George Chen
7747.377 7747.377 7747.377 NA [7,] NA 7747.377 7747.377 7747.377 7747.377 [8,] NA 7747.377 7747.377 7747.377 7747.377 [9,] 7747.377 7747.377 7747.377 7747.377 7747.377 [10,] 7747.377 7747.377 7747.377 7747.377 7747.377 Thanks in advance, George

[R] making an Affybatch object for expresso

2009-05-07 Thread George Chen
run expresso with it? Thanks, George __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained

[R] Two different scales for the same axis in the same plot.

2009-04-10 Thread George Chen
to present my data such that the range from 0 to 7 takes up a smaller amount of space on the graph compared to the range from 7 to 10 so that I can see more of the details in 7 to 10? Thanks in advance, George Chen __ R-help@r-project.org mailing list

  1   2   >