Displaying 20 results from an estimated 40000 matches similar to: "plotting multiple plots on a single graph"
2023 Jul 07
1
Plotting factors in graph panel
Thanks! You are correct, the graphs look very similar, except ggplot is
scaling the text font to make it more readable. Is there a way to scale
down the x-axis labels, so they are readable?
On Fri, 7 Jul 2023 at 12:02, PIKAL Petr <petr.pikal at precheza.cz> wrote:
> Hallo Anupam
>
> I do not see much difference in ggplot or lattice, they seems to me
> provide almost identical
2018 Feb 12
2
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 <- ggplot(a, aes(x=Phenotypes, y=Metabolites, size=abs(Beta),
colour=factor(sign(Beta)))) +
theme(axis.text=element_text(size = 5))
p1<-p+geom_point()
p2<-p1+theme(panel.grid.major = element_blank(),
panel.grid.minor = element_blank(),
2003 Feb 26
3
multiple plot overlay - dataframe
I hope you could help me with this. I have a dataframe
with 5 columns, the first column determining the X
values, and the rest four determining four separate Y
vectors. How can I plot them on the same graph,
overlaying each other?
Thanks.
Elena Zheleva
2018 Feb 12
3
plotting the regression coefficients
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(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.
2018 Feb 12
0
plotting the regression coefficients
Petr, there was a thinko in your response.
tmp <- data.frame(m=factor(letters[1:4]), n=1:4)
tmp
tmp$m <- factor(tmp$m, levels=c("c","b","a","d")) ## right
tmp[order(tmp$m),]
tmp <- data.frame(m=factor(letters[1:4]), n=1:4)
levels(tmp$m) <- c("c","b","a","d") ## wrong
tmp[order(tmp$m),]
changing levels
2018 Feb 13
0
plotting the regression coefficients
Hi
scale_colour_gradient(?red?, ?blue?)
should do the trick.
Actually I found it by Google
ggplot colour
http://www.cookbook-r.com/Graphs/Colors_(ggplot2)/
http://www.sthda.com/english/wiki/ggplot2-colors-how-to-change-colors-automatically-and-manually#gradient-colors-for-scatter-plots
question. So you could find it too and probably far more quickly then myself as I have also other duties.
Cheers
2007 Mar 07
2
Multi-line plots with matrices in R
Hello all,
I'm a new user of R, experienced with Octave/MATLAB and therefore
struggling a bit with the new syntax.
One of the easy things in Octave or MATLAB is to plot multiple lines or
sets of points by using a matrix where either the columns or the rows
contain the y-values to be plotted. Both packages automatically give
each line/points their own unique colour, character etc.
I'm
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
2018 Feb 12
0
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 of the
program.
* ggsave('circle.pdf', p4, height = 70, width = 8, device=pdf, limitsize =
F, dpi=300).*
This works very well too.
Asa my categorical variables are in my Y axis, my R program reorders the
names on Y-axis. However, I would
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
2003 Sep 03
3
plotting a distribution curves
Hi,
is there a way to plot distribution curves (say normal or chi sq etc)
from within R?
For example I looked up the *chisq family of functions but I'm not sure
as to how I would use them to generate a plot of the chi sq distribution
(for arbitrary d.o.f).
Thanks,
-------------------------------------------------------------------
Rajarshi Guha <rajarshi at presidency.com>
2006 Apr 27
1
Plotting Data Frame
Dear R community members,
I think I am asking a very simple question, but I really looked up in
the faqs and manuals and found nothing helpful.
I am trying to plot a data frame with the following structure (this is
just a small extract):
glo conc odor line series X1 X2 X3 X4 X5
X6 X7 X8 X9 X10 X11 X12 X13
1 0 AIR LN1 UP -0.488
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),
2003 Apr 10
1
how to estimate parameters of multimodal distribution
Dear all
Please, is there any function or package for dealing with multimodal distributions?
I try to fit multimodal distribution or more precisely to find out mixture of normal
distributions which can lead to my actual data.
I use optim to find (in that case) two parameters but what I want is to let the
function find out arbitrary number of normal distributions underlaying my actual
data
2005 Apr 25
4
panel ordering in nlme and augPred plots
Dear all
I am trying nlme together with Pinheiro/Bates book. I constructed
grouped data object with suitable plotting layout (according to
some common factor, panels from bottom to top are in increasing
order).
When I do nlme(... some stuff...) I get fitted object which I can plot
with
plot(augPred(fit.nlme6, level=0:1))
but it results in completely different ordering. Is there any way
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 <-
2007 Mar 21
2
Detailed legend in mathplot ...
Hello,
Recently, I have asked for a help with building graphs, and I got few
great advices. Now, my appetite is growing :) and I wander how to add
legend for two (or more) lines in following example:
matplot(DAT[, c(3,4)], type="b", ylim=c(0,8), xaxt="n", yaxt="n",
+ pch=c(21,22), col="black", lty=c("dashed","solid"), xlab="",
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,
2003 Jan 20
3
Plotting w/multiple y-axes?
How do I plot using multiple(2) y-axes?
I have two series that use the same x-data, but have very different scales.
Appreciate any feedback,
Per Bak
2007 Jan 07
2
different points and lines on the same plot
Dear all,
I have following data called "paitent"
day patient1 patient4 patient5 patient6
0 -0.27842688 -0.04080808 -0.41948398 -0.04508318
56 -0.22275425 -0.01767067 -0.30977249 -0.03168185
112 -0.08217659 -0.26209243 -0.29141451 -0.09876170
252 0.08044537 -0.26701769 0.05727087 -0.09663701
where each patient have response values at four time
points. I want to