Finally I get a plot manual...so I got the solution¡¡¡¡

Sorry about inconveniences....


2009/11/24, Jose Narillos de Santos <narillosdesan...@gmail.com>:
>
> Hi All,
>
> My doub I think is very simple. I hope it is. So you can again help, guide
> me.
>
> I´m trying to make a graph (scatter graph) about two variables, imagine I
> have a watter.txt file with two variables watter and hardness:
>
> This code extracted from:
> http://cran.r-project.org/web/packages/HSAUR/vignettes/Ch_simple_inference.pdf
> would make a plot similar I want I mean to make an scatterplot with
> marginal ditribution up and left...(in this case a boxplot on the left and
> also I omitt the location).
>
>
> layout(matrix(c(2, 0, 1, 3), 2, 2, byrow = TRUE),
> 2 + c(2, 1), c(1, 2), TRUE)
>
> plot(mortality ~ hardness, data = water, pch = psymb)
>
> abline(lm(mortality ~ hardness, data = water))
>
> legend("topright", legend = levels(water$location), 7 + pch = c(1,2), bty
> = "n")
>
> hist(water$hardness)
>
> boxplot(water$mortality)
>
>
>
> Can anyone explain what is the values in "layout" the inputs I mean, I have
> read the help but because I´m a begginer I ´m not able to comprehed why they
> put matrix c(2,0,1,3) and the other inputs?
>
>
>
> I need if someone can help me an easy example....
>
>
>
> Thanks a lot.
>
>
>
>
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to