Displaying 5 results from an estimated 5 matches for "hydroxybutyr".
2012 Dec 04
3
reformatting some data
Hello,
I am trying to reformat some data so that it is organized by group in the
columns. The data currently looks like this:
group X3.Hydroxybutyrate X3.Hydroxyisovalerate ADP
347 4 4e-04 3e-04 5e-04
353 3 5e-04 3e-04 6e-04
359 4 4e-04 3e-04 6e-04
365 4 6e-04 3...
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, levels(iris$Species)[c(2,3,1)])
Regards,
Greg
On Fri, Feb 16, 2018 at 6:13 PM, PIKAL Petr <petr.pik...
2018 Feb 19
0
Putting 733 discrete categories on Y-axis in qqplot2 as they are
...;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 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, levels(iris$Species)[c(2,3,1)])
Regards,
Greg
On Fri, Feb 16, 2018 at 6:13 PM, PIKAL Petr <petr.pika...
2018 Feb 16
0
Putting 733 discrete categories on Y-axis in qqplot2 as they are
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 character vectors.
See this result
> iris$MySpecies<-factor(iris$Species, levels(iris$Species)[c(2,3,1)])
> p<-ggplot(iris, aes(x=Sepal.Length, y=Species))
>
2018 Feb 16
2
Putting 733 discrete categories on Y-axis in qqplot2 as they are
Hi Petr;
Thanks. I do save the result in pdf by using the following command.
ggsave("z7.pdf", p4, height = 95, width = 8, device=pdf, limitsize =
F,dpi=300)
I can achieve the y axis with 733 levels. But I need get the plot WITHOUT
reordering the names.
Regards,
Greg
On Fri, Feb 16, 2018 at 3:39 PM, PIKAL Petr <petr.pikal at precheza.cz> wrote:
> Hi
>
> >