Re: [R] Help to Draw Plot

From: ermimi <ermimi__at_hotmail.com>
Date: Wed, 14 May 2008 13:24:57 -0700 (PDT)

Patrick and Blay Thank you very much for help me, I have drawn in blue the axis!!!!
Blay the solution that you give me for start in (-10,-10) and finish in (10,10) isn´t very well because I want that if my range is (-10,10) the axis is in -10,10. I need that there isn´t space between the less range and the axis.

Patrick Connolly-4 wrote:
>
> On Wed, 14-May-2008 at 09:12AM -0700, ermimi wrote:
>
> |>
> |> Hello friends!!
> |>
> |> I have two questions, and I would like that you could answer me!!!
> |>
> |> I have created a plot as
> |>
> |>
> plot(range(10,-10),range(10,-10),col="blue",col.axis="blue",col.lab="blue",col.main="blue",col.sub="blue");
> |>
> |>
> |> 1º) I want that the square of plot and the lines that indicates the
> value
> |> -10,-5,0,5,10 have a blue colour too.
>
> There would be tidier ways, but this will work:
>
> points(range(10,-10),range(10,-10), col = "blue")
> box(col = "blue")
>
>
> |>
> |> 2º)It´s different to the question one. I want that the plot start and
> finish
> |> in the two points that are drawn, is say... I want that the plot start
> in
> |> (-10,-10) (corner left down) and finish in (10,10) (corner right up)...
> Now
> |> the plot start in -11,-11 and finish in 11,11 more or less...
>
> check out abline.
>
> HTH
>
> --
> ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
> ___ Patrick Connolly
> {~._.~} Great minds discuss ideas
> _( Y )_ Middle minds discuss events
> (:_~*~_:) Small minds discuss people
> (_)-(_) ..... Anon
>
> ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
>
> ______________________________________________
> R-help_at_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.
>
>

-- 
View this message in context: http://www.nabble.com/Help-to-Draw-Plot-tp17234957p17239938.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_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.
Received on Wed 14 May 2008 - 21:54:52 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 15 May 2008 - 07:30:38 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive