Re: [R] placing a text in the corner of a plot

From: Ben Tupper <PemaquidRiver_at_tidewater.net>
Date: Tue, 29 Jul 2008 19:04:58 -0400

On Jul 29, 2008, at 6:47 PM, Jörg Groß wrote:

>> legend("topleft",c("Your text here"),pch=1)
>
>
> Thanks!
>
> But is it possible to get rid of the legend-box and the box-shadow?
>
> I don't find an argument in the manual for that.
>

Hi,

The documentation for the argument is right there - but as always it is finding it that is the trick.

Try this...

legend("topleft",c("Your text here"),pch=1, box.lty = 0)

Cheers,
Ben

>
>
> Am 30.07.2008 um 00:08 schrieb Jorge Ivan Velez:
>
>>
>> Dear Jörg,
>>
>> Perhaps,
>>
>> plot(1:10)
>> legend("topleft",c("Your text here"),pch=1)
>>
>> See ?legend and ?text for more information.
>>
>> HTH,
>>
>> Jorge
>>
>>
>> On Tue, Jul 29, 2008 at 6:04 PM, Jörg Groß <joerg_at_licht-malerei.de>
>> wrote:
>> Is there an easy way to add a text into an R-plot and place it in
>> the upper left corner?
>>
>> Like that:
>>
>>
>> --------------------------------
>> | (a) |
>> | |
>> | |
>> | |
>> | |
>> | |
>> --------------------------------
>>
>> The (a) should be at the borders of a box defined by the box()-
>> command.
>>
>> ______________________________________________
>> 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.
>>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.

Ben Tupper
PemaquidRiver_at_tidewater.net

I GoodSearch for Ashwood Waldorf School.

Raise money for your favorite charity or school just by searching the Internet with GoodSearch - www.goodsearch.com - powered by Yahoo!



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 Tue 29 Jul 2008 - 23:07:13 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 Tue 29 Jul 2008 - 23:32:56 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