Re: [R] Help to Draw Plot

From: Don MacQueen <macq_at_llnl.gov>
Date: Wed, 14 May 2008 19:59:57 -0700

At 1:24 PM -0700 5/14/08, ermimi wrote:
>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.
>

See the help page for par

   ?par
then look for xaxs

use xaxs='i', yaxs='i'

>
>
>
>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.

-- 
---------------------------------
Don MacQueen
Lawrence Livermore National Laboratory
Livermore, CA, USA
925-423-1062
macq_at_llnl.gov

______________________________________________
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 Thu 15 May 2008 - 05:43: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 - 21:30:45 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