Displaying 20 results from an estimated 291 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(...

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 23

2

How to shade area between lines in ggplot2

...ed", 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
>
> >...

2020 Oct 26

0

How to shade area between lines in ggplot2

...wdat, 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 Mar 07

3

returning the largest element in an array/matrix?

Hi all,
I want to use "which.max" to identify the maximum in a 2D array/matrix and I
want "argmin" and return the row and column indices.
But "which.max" only works for vector...
Is there any convinient way to solve this problem?
Thanks a lot!
[[alternative HTML version deleted]]

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...

2008 Jun 26

3

bug in nls?

...blic.1250;LC_NUMERIC=C;LC_TIME=Czech_Czech Republic.1250
attached base packages:
[1] stats grDevices datasets utils graphics methods base
other attached packages:
[1] nlme_3.1-88 lattice_0.17-7 fun_0.1
loaded via a namespace (and not attached):
[1] grid_2.8.0 tools_2.8.0
Petr Pikal
petr.pikal at precheza.cz
724008364, 581252140, 581252257

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)
>
&...

2010 Mar 18

5

language!!!

Hi,
there´s something that really bothers me about R and after hours and hours of internet research, I´m still stuck with the same problem: I installed R and it is in Spanish, as the system on my work. I would really like it in English and there seems to be no way to change that!?! I´m doing an abroad internship, so my Spanish is far from perfect and my tutorial is in English.
Is there any

2017 Aug 01

0

Superscript and subscrib R for legend x-axis and y-axis and colour different subjects in longitudinal data with different colours

Hi
Keep your messages coppied to R helplist, others could give you answers too.
See in line
From: Rosa Oliveira [mailto:rosita21 at gmail.com]
Sent: Tuesday, August 1, 2017 4:38 PM
To: PIKAL Petr <petr.pikal at precheza.cz>
Subject: Re: [R] Superscript and subscrib R for legend x-axis and y-axis and colour different subjects in longitudinal data with different colours
Hi Pikal,
I looked your message, but I think you do not answer the question, right?
Why do you think so. did...

2018 Feb 12

2

plotting the regression coefficients

...)) {
p <- ggplot(temp.s[[i]], aes(x=par1, y=variable, size=abs(value), colour=factor(sign(value))))
print(p+geom_point())
}
dev.off()
But the real code partly depends on your real data.
Cheers
Petr
From: greg holly [mailto:mak.hholly at gmail.com]
Sent: Saturday, February 10, 2018 9:05 PM
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 Peter;
The R code you provided works very well. Once again thanks so much for this. The number of variables in my data set that should appear on...

2007 Nov 15

1

homogenity inside groups

...iris)
I have two questions:
1. Is there any other plot to show all variables at once? Something
like
densityplot(~iris[,1:4] | Species, iris)
2. Is it possible to evaluate homogenity of many (20-30) variables
inside groups by some other function/table/graph?
Thank you
Petr Pikal
petr.pikal at precheza.cz

2012 Dec 04

4

partial analisys of a time series

Dear list members
I want to analyze separately the months of a time series. In other words, I
want to plot and fit models for each month separately.
Taking the example of
http://a-little-book-of-r-for-time-series.readthedocs.org/en/latest/src/timeseries.html
births <- scan("http://robjhyndman.com/tsdldata/data/nybirths.dat")

2017 Oct 13

0

How to define proper breaks in RFM analysis

...r
scores. Whether this is an option I do not know. I did offer an
"eyeball" set of breaks in a previous email, but apparently this was
not sufficient.
Jim
On Sat, Oct 14, 2017 at 4:27 AM, David Winsemius <dwinsemius at comcast.net> wrote:
>
>> 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("clipboar...

2018 Feb 16

2

Putting 733 discrete categories on Y-axis in qqplot2 as they are

...*2-hydroxybutyrate/2-hydroxyisobutyrate*" and
"*palmitoyl-arachidonoyl-glycerol
(16:0/20:4) [1]**" .So, what should I put [c(2,3,1)] part in the command:
iris$MySpecies<-factor(iris$Species, levels(iris$Species)[c(2,3,1)])
Regards,
Greg
On Fri, Feb 16, 2018 at 6:13 PM, PIKAL Petr <petr.pikal at precheza.cz> wrote:
> Hi
>
>
>
> What do you mean ?without reordering the names?. Factor variable is
> ordered according to its levels and you can freely change the ordering.
> This is why factors are useful and worth to use in many cases instead of
&...

2004 Jan 07

2

locale problem in W98

...my profile on both computers
and it seems to be the same.
I can put Czech characters on finished plots with some other program (GIMP)
but I prefer to do all possible annotation in R.
Please, can you give me some hint where to look for possible solution on W98
machine setting.
Thank you
Petr Pikal
petr.pikal at precheza.cz

2018 Feb 19

0

Putting 733 discrete categories on Y-axis in qqplot2 as they are

...y not to convert vector with names to factor, which, for plotting issue is not different from factor coding.
See ?read.table for details
However I am not sure if it stays in original order.
Cheers
Petr
From: greg holly [mailto:mak.hholly at gmail.com]
Sent: Friday, February 16, 2018 6:28 PM
To: PIKAL Petr <petr.pikal at precheza.cz>
Cc: r-help mailing list <r-help at r-project.org>
Subject: Re: [R] Putting 733 discrete categories on Y-axis in qqplot2 as they are
Hi Petr;
I would like to get a plot with names as they are in the original file. They are chemical names and I have 733...