Displaying 20 results from an estimated 10000 matches similar to: "R and UBUNTU startup"
2017 Aug 16
5
strange behaviour read.table and clipboard
Hi Duncan
The simples spreadsheet is:
Put a name in the cell, let say "a1"
Put number e.g. 1 below "a1"
Copy the number to enough rows
Select this column and press ctrl-c
result is
> temp<- read.delim("clipboard")
> str(temp)
'data.frame': 1513 obs. of 1 variable:
$ a1: Factor w/ 2 levels "1","a1": 1 1 1 1 1 1 1 1 1 1 ...
2017 Jul 10
4
fit lognorm to cdf data
Dear all
I am struggling to fit data which form something like CDF by lognorm.
Here are my data:
proc <- c(0.9, 0.84, 0.5, 0.16, 0.1)
size <- c(0.144, 0.172, 0.272, 0.481, 0.583)
plot(size, proc, xlim=c(0,1), ylim=c(0,1))
fit<-nls(proc~SSfpl(size, 1, 0, xmid, scal), start=list(xmid=0.2, scal=.1))
lines(seq(0,1,.01), predict(fit, newdata=data.frame(sito=seq(0,1,.01))), col=2)
I tried
2018 Feb 08
2
plotting the regression coefficients
Hi Petr;
Thanks for your reply. It is much appreciated. A small example is given
below for 4 independent and 4 dependent variables only. The values given
are regression coefficients.I have looked ggplot documents before writing
to you. Unfortunately, I could not figure out as my experience in ggplot is
ignorable
Regards.
Greg
y1 y2 y3 y4
x1 -0.19 0.40 -0.06 0.13
x2 0.45 -0.75 -8.67 -0.46
x3
2017 Aug 17
2
strange behaviour read.table and clipboard
Hi
> -----Original Message-----
> From: Robert Baer [mailto:rbaer at atsu.edu]
> Sent: Wednesday, August 16, 2017 3:04 PM
> To: PIKAL Petr <petr.pikal at precheza.cz>; Duncan Murdoch
> <murdoch.duncan at gmail.com>
> Cc: r-devel at r-project.org
> Subject: Re: [Rd] strange behaviour read.table and clipboard
>
> You said, "put a name in the cell".
2018 Feb 08
2
plotting the regression coefficients
Hi Petr;
Thanks so much. Exactly this is what I need. I will play to change color
and so on but this backbound is perfect to me. I do appreciate your help
and support.
Regards,
Greg
On Thu, Feb 8, 2018 at 1:29 PM, PIKAL Petr <petr.pikal at precheza.cz> wrote:
> Hi
>
> I copied your values to R, here it is
>
>
>
> > dput(temp)
>
>
>
> temp <-
2017 Aug 15
2
strange behaviour read.table and clipboard
Dear all
I used to transfer data from excel to R by simple ctrl-c and read.delim("clipboard") construction. I know it is a bad practice but it is easy and for quick exploratory work it is OK. However after changing to new R devel few days ago I encountered weird behaviour. I tried one or two columns.
In case of 2 columns, header is repeated after 526 items
>
2018 Feb 16
2
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 in the my file. For example, let me
give to chemical names "*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,
2017 Jul 04
0
R and UBUNTU startup
I did the same transition, facing the same issues, so I settled for installation of RKWard. This pretty much reproduces my previous experience with Tinn-R and the Rgui.
HTH
Ruben
________________________________
Ruben H. Roa-Ureta, Ph. D.
Senior Scientist,
Center for Environment and Water, Marine Studies Section,
King Fahd University of Petroleum and Minerals,
KFUPM Box 1927, Dhahran 31261,
2018 Feb 10
0
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 the
y-axis is 733 and they are not numerical (for example the name of one
variable is *palmitoyl-arachidonoyl-glycerol (16:0/20:4) [1]**. So, the
plot looks very messy in one page. How can I make the plot to print out on
multiple pages?
Regards,
2017 Jul 10
0
fit lognorm to cdf data
How about
proc <- c(0.9, 0.84, 0.5, 0.16, 0.1)
size <- c(0.144, 0.172, 0.272, 0.481, 0.583)
plot(size, proc, xlim=c(0,1), ylim=c(0,1))
fit<-nls(proc~plnorm(size, log(xmid), sdlog, lower=FALSE), start=list(xmid=0.2, sdlog=.1))
summary(fit)
lines(fitted(fit)~size)
-pd
> On 10 Jul 2017, at 16:27 , PIKAL Petr <petr.pikal at precheza.cz> wrote:
>
> Dear all
>
> I am
2017 Aug 08
2
how to extract individual values from varcomp?
Hello,
I am trying to use varcomp to decompose the variance across multiple
nested levels on a lme object. I am able to successfully do this and
when I view the varcomp object I can see the individual values /
estimates for the variance at different levels.
However, I want to be able to extract each of them separately, as I
need to build a confidence interval using bootstrapping on the sample
2017 Jul 04
0
R and UBUNTU startup
Q1. No.
Q2. What do you do? Did you follow the instructions at [1]? If you go to the top level of the R help system you should be able to open the manuals. ?help
Q3. Not that I know of. If you have difficulty with R on Linux then you should focus on learning how to use Linux in general... and learn what X-Windows is. But just as with Windows, googling your problem will usually lead to stepwise
2017 Jul 11
1
fit lognorm to cdf data
Hi
Great. I did not think that such combination is posssible.
Thanks.
Petr
> -----Original Message-----
> From: peter dalgaard [mailto:pdalgd at gmail.com]
> Sent: Tuesday, July 11, 2017 1:11 AM
> To: PIKAL Petr <petr.pikal at precheza.cz>
> Cc: r-help at r-project.org
> Subject: Re: [R] fit lognorm to cdf data
>
> How about
>
> proc <- c(0.9, 0.84, 0.5,
2018 Feb 12
2
plotting the regression coefficients
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)
library(ggplot2)
temp <- melt(temp)
temp.s<-split(temp, cut(1:nrow(temp), 2))
pdf("temp.pdf")
for (i in 1: length(temp.s)) {
p <- ggplot(temp.s[[i]], aes(x=par1, y=variable, size=abs(value),
2018 Feb 15
2
Putting 733 discrete categories on Y-axis in qqplot2 as they are
Hi all;
I have 733 discrete categories that will go on y-axis in ggplot2. I used
the following command to put the name of x-axis.
scale_x_discrete (limits = c("SI", "HOMAIR",
"AIR","HOMAB","SG","DI","FI","FG"))
Since there are only 8 categories on x it was easy to do. Is there any way
to do the same for 733 discrete
2017 Oct 11
6
changing "," to "." in data.frame
Dear friends - I have a data.frame with "," instead of "." and found the
discussion
http://r.789695.n4.nabble.com/How-to-replace-all-commas-with-semicolon-in-a-string-tt4721187.html#a4721192
so copying the code of Ulrik(I hope:-)) I tried
(making some data)
AX <-
2017 Jun 15
3
about fitting a regression line
Thanks for your replies. I tried the regression, but then got a NA value
for the slope. And here is the error message:
Coefficients: (1 not defined because of singularities)
On Thu, Jun 15, 2017 at 12:20 AM, PIKAL Petr <petr.pikal at precheza.cz> wrote:
> Hi
>
> But X can be some function like - sin, cos, log, exp...
>
> Cheers
> Petr
>
> > -----Original
2017 Jun 29
2
Changing ggplot2 legend key/title to custom text
Hi all,
ok I have this issue:
I want to change my graphs legends to custom text, often requiring the use of superscripts/subscripts
I tried to use this instruction I found on stack overflow:
labs(x = "R(Ohm)", y= "CDF", aesthetic= " Content (%)" )
but it wont' seem to work.
Also tried bquote for super/ subscripts
xlab(bquote(~x~/(~x~ + ~MO[2]~)*
2018 Feb 08
0
plotting the regression coefficients
Hi
I copied your values to R, here it is
> dput(temp)
temp <- structure(list(par1 = structure(1:4, .Label = c("x1", "x2", "x3",
"x4"), class = "factor"), y1 = c(-0.19, 0.45, -0.09, -0.16),
y2 = c(0.4, -0.75, 0.14, -0.01), y3 = c(-0.06, -8.67, 1.42,
2.21), y4 = c(0.13, -0.46, 0.06, 0.06)), .Names = c("par1",
"y1",
2017 Jun 29
1
Changing ggplot2 legend key/title to custom text
Hi Petr and thanks for your reply,
That's the problem I don't want to modify the labels of my legends but the title of the legend in itself inserting my custom text :)
Take for example the 1st graph in this tutorial
http://www.sthda.com/english/wiki/ggpubr-r-package-ggplot2-based-publication-ready-plots
I want to change the "sex" in "sex subscript 2" or "