[R] line plot

Rense Nieuwenhuis r.nieuwenhuis at student.ru.nl
Thu Feb 1 15:47:48 CET 2007


Hi,

or otherwise you may try:

  plot(c(1,5), c(1,10),type="l")

kindest regard, Rense


On Feb 1, 2007, at 8:14 , Petr Pikal wrote:

> Hi
>
> see ?segments
> segments(1,10,5,10)
>
> HTH
> Petr
>
>
> On 1 Feb 2007 at 14:21, XinMeng wrote:
>
> From:           	"XinMeng" <xmeng at capitalbio.com>
> To:             	r-help at stat.math.ethz.ch
> Date sent:      	Thu, 01 Feb 2007 14:21:34 +0800
> Subject:        	[R] line plot
> Send reply to:  	XinMeng <xmeng at capitalbio.com>
> 	<mailto:r-help-request at stat.math.ethz.ch?subject=unsubscribe>
> 	<mailto:r-help-request at stat.math.ethz.ch?subject=subscribe>
>
>> Hello sir:
>> I wanna get such kind of plot: a line whose start point is(1,10),end
>> point is(5,10)
>>
>> In other words:
>>
>> How can I draw a line if I only know the coordinate of the start  
>> point
>> and end point? Thanks! My best
>>
>> ______________________________________________
>> R-help at stat.math.ethz.ch 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.
>
> Petr Pikal
> petr.pikal at precheza.cz
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>



More information about the R-help mailing list