[R] Help to Draw Plot
ermimi
ermimi_ at hotmail.com
Wed May 14 22:24:57 CEST 2008
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 en 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.
More information about the R-help
mailing list