search for: pikal

Displaying 20 results from an estimated 873 matches for "pikal".

2018 Feb 13
0
plotting the regression coefficients
...ore quickly then myself as I have also other duties. Cheers Petr BTW, you still post in HTML which could be sometimes problematic in this text only list. From: greg holly [mailto:mak.hholly at gmail.com] Sent: Monday, February 12, 2018 7:07 PM To: Richard M. Heiberger <rmh at temple.edu> Cc: PIKAL Petr <petr.pikal at precheza.cz>; r-help mailing list <r-help at r-project.org> Subject: Re: [R] plotting the regression coefficients Hi Petr and Richard; Thanks for your responses and supports. I just faced a different problem. I have the following R codes and work well. p <- gg...
2018 Feb 12
2
plotting the regression coefficients
...t;,"d") ## wrong > tmp[order(tmp$m),] > > changing levels directly changes the names only, not the ordering. > You must redefine the factor to retain the relationship of factor > names with the numerical values. > > Rich > > > On Mon, Feb 12, 2018 at 3:49 AM, PIKAL Petr <petr.pikal at precheza.cz> > wrote: > > Hi > > > > After melt you can change levels of your factor variable. Again with the > toy example. > > > >> levels(temp$variable) > > [1] "y1" "y2" "y3" "y4" >...
2018 Feb 12
3
plotting the regression coefficients
...<- levels(temp$variable)[c(2,4,1,3)] > levels(temp$variable) [1] "y2" "y4" "y1" "y3" > And you will get graphs with this new levels ordering. Cheers Petr From: greg holly [mailto:mak.hholly at gmail.com] Sent: Monday, February 12, 2018 8:52 AM To: PIKAL Petr <petr.pikal at precheza.cz> Cc: r-help mailing list <r-help at r-project.org> Subject: Re: [R] plotting the regression coefficients Hi Petr; Thanks so much. This is great! Although last Sunday, alternatively, I have solved the problem using the following statement at the very end...
2018 Feb 12
0
plotting the regression coefficients
...lt;- c("c","b","a","d") ## wrong tmp[order(tmp$m),] changing levels directly changes the names only, not the ordering. You must redefine the factor to retain the relationship of factor names with the numerical values. Rich On Mon, Feb 12, 2018 at 3:49 AM, PIKAL Petr <petr.pikal at precheza.cz> wrote: > Hi > > After melt you can change levels of your factor variable. Again with the toy example. > >> levels(temp$variable) > [1] "y1" "y2" "y3" "y4" >> levels(temp$variable) <- levels(...
2003 May 20
3
plot POSIX class and identify
Hallo all just a small question I did not find an answer in help pages. Is it possible to use identify() after plotting with plot.POSIX to label points and/or to find out some points? Thanks a lot. Best regards Petr Pikal petr.pikal at precheza.cz p.pik at volny.cz
2006 Feb 07
1
(second round) creating a certain type of matrix
Hi R users Here is what I got with help from Petr Pikal (Thanks Petr Pikal). I modified Petr Pikal's code to a little to meet my purpose. I created a function to generate a matrix generate.matrix<-function(n.variable) { mat<-matrix(0,n.variable,(n.variable/2)/5+1) #matrix of zeroes dd<-dim(mat) # actual dimensions mat[1:(dd[1]/2),1]<-...
2006 Sep 18
0
Question on apply() with more information...
>From: =?ISO646-US?Q?Gunther_H=3Fning?= <gunther.hoening at ukmainz.de> >Date: 2006/09/18 Mon AM 06:26:25 CDT >To: 'Petr Pikal' <petr.pikal at precheza.cz> >Cc: r-help at stat.math.ethz.ch >Subject: Re: [R] Question on apply() with more information... I think you want something like below but it probably needs some fixing up because i don't recall the syntax exactly. predictdata<-lapply(i=1:length(...
2020 Oct 23
2
How to shade area between lines in ggplot2
...dashed", col = "royalblue") + geom_abline(slope = slope_1, intercept = intercept_1 + 1/w[2], linetype = "dashed", col = "royalblue") ``` Why there is a hole in the middle of the ribbon? and the color is not grey... On Fri, Oct 23, 2020 at 2:35 PM PIKAL Petr <petr.pikal at precheza.cz> wrote: > > Hi > > What about something like > > p+geom_ribbon(aes(ymin = slope_1*x + intercept_1 - 1/w[2], > ymax = slope_1*x + intercept_1 + 1/w[2], fill = "grey70", alpha=0.1)) > > Cheers > Petr > > > -----Ori...
2008 Jan 10
6
4 dimensional graphics
Dear all I want to display 4 dimensional space by some suitable way. I searched CRAN and found miscellaneous 3 dim graphics packages which I maybe can modify but anyway I am open to any hint how to efficiently display data like: longitude, latitude, height, value Thank you Petr Pikal petr.pikal at precheza.cz
2020 Oct 26
0
How to shade area between lines in ggplot2
...(data=newdat, aes(ymin = slope_1*x + intercept_1 - 1/w[2], ymax = slope_1*x + intercept_1 + 1/w[2]), fill = "yellow", alpha=0.1) Cheers Petr > -----Original Message----- > From: Luigi Marongiu <marongiu.luigi at gmail.com> > Sent: Friday, October 23, 2020 3:30 PM > To: PIKAL Petr <petr.pikal at precheza.cz> > Cc: r-help <r-help at r-project.org> > Subject: Re: [R] How to shade area between lines in ggplot2 > > Thank you, but this split the area into two and distorts the shape of the > plot. > (compared to ``` p + geom_abline(slope = slope...
2006 Aug 24
2
my error with augPred
...B~1,xmid~vykon.fac, scal~1), start = c(57, 100, 700, rep(0,3), 13)) I know I should provide an example but maybe somebody will be clever enough to point me to an explanation without it. nlme version 3.1-75 SSfpl model R 2.4.0dev (but is the same in 2.3.1), W2000. Thank you Best regards. Petr PikalPetr Pikal petr.pikal at precheza.cz
2006 Apr 05
1
(Fwd) Re: Reading xyz data from a file and plotting a cont
BTW. I checked help page of contour and maybe it could mention a note about akima package or interp function. Petr ------- Forwarded message follows ------- From: Petr Pikal <petr.pikal at precheza.cz> To: "Abhinav Verma" <abhinav1205 at gmail.com>, r-help at stat.math.ethz.ch Subject: Re: [R] Reading xyz data from a file and plotting a contour plot Date sent: Wed, 05 Apr 2006 13:39:38 +0200 Hi On 5 Apr 2006 at 10:44,...
2002 Jan 24
5
aggregate, by tapply
...ion for factor weighted mean fff<-function(x,fact,w) { ws<-tapply(w,fact,sum) newx<-x*w tapply(newx,fact,sum)/ws } which can handle particular case but does exist some more general solution how to use FUN(X1,X2) in aggregation procedures (tapply, aggregate, by) directly? Thank you Petr Pikal petr.pikal at precheza.cz p.pik at volny.cz -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", n...
2007 Jan 05
4
Fast Removing Duplicates from Every Column
Hi, I'm looking for some lines of code that does the following: I have a dataframe with 160 Columns and a number of rows (max 30): Col1 Col2 Col3 ... Col 159 Col 160 Row 1 0 0 LD ... 0 VD Row 2 HD 0 0 0 MD Row 3 0 HD HD 0 LD Row 4 LD HD HD 0 LD ... ... LastRow HD HD LD 0 MD Now I want a dataframe that looks like this. As you see
2003 Nov 14
2
bad performance of a function
...st <- lapply(dd,function(x) as.numeric(table(which(x)- cumsum(x[which(x)]))))) Timing stopped at: 750.63 1 775.6 NA NA Please give me any hint how to improve performance or advice a different (but more effective) solution. R 1.8.0, W2000, 512M memory, Pentium4 Thank you in advance. Petr Pikal petr.pikal at precheza.cz
2004 Jun 09
5
"attach" in R corr. to Spus one
Hi, I am a newbie to R, just trying to switch from Splus. I am wondering to know if there is any such command in R as "attach" in Splus which can be used to attach the full directory. Also, any idea/referrence about, how to load c functions in R would be highly appreciated. Thanks, Utsav
2009 Jul 29
1
Add a line in a Pairs2 and mark the axis length
...ointains 3653 4617 4177 3907 3975 3651 3031 2912 3018 Ase2.txt contains ant g t 219390 8740 17220 301510 8530 17550 316970 8640 17650 364220 9360 21420 387390 9960 23410 430180 11040 25820 499930 12240 27620 595010 13800 31670 661870 14760 37170 2009/7/28, Petr PIKAL <petr.pikal@precheza.cz>: > > r-help-bounces@r-project.org napsal dne 28.07.2009 15:39:03: > > > > > Have you installed it first? > > First: > > install.packages("TeachingDemos") > > Or if you have problems with correct setting through corporat...
2005 Feb 09
2
[Fwd: Re: Fw: Contour plot]
...14 1.000e+00 1.000e+00 How do I create the "z" matrix from dat.lm?? Without having to type over all the coefficients? Kind regards, Darius Blaszijk ------------------------- Oorspronkelijk bericht ------------------------- Onderwerp: Re: Fw: [R] Contour plot Van: "Petr Pikal" <petr.pikal at precheza.cz> Datum: Wo, 9 februari, 2005 11:23 am Aan: dhkblaszyk at zeelandnet.nl r-help at stat.math.ethz.ch -------------------------------------------------------------------------- Hi Darius On 8 Feb 2005 at 17:43, dhkblaszyk at zeelandnet.nl...
2017 Oct 13
2
How to define proper breaks in RFM analysis
> On Oct 13, 2017, at 2:51 AM, PIKAL Petr <petr.pikal at precheza.cz> wrote: > > Hi > > You expect us to solve your problem but you ignore advice already recieved. > > Your data are unreadable, use dput(yourdata) instead. see ?dput > >> test<-read.table("clipboard", heade=T) > Error...
2018 Feb 12
0
plotting the regression coefficients
...too. Asa my categorical variables are in my Y axis, my R program reorders the names on Y-axis. However, I would like have and plot output with the names as they are. Is there any way to have plot without ordering the names of variables on Y-axis? Regards, Greg. On Mon, Feb 12, 2018 at 10:12 AM, PIKAL Petr <petr.pikal at precheza.cz> wrote: > Hi > > > > Maybe there are other ways but I would split data to several chunks e.g. > in list and use for cycle to fill multipage pdf. > > > > With the toy data something like > > > > library(reshape2) > &...