[R] placing a text in the corner of a plot
Ben Tupper
PemaquidRiver at tidewater.net
Wed Jul 30 01:04:58 CEST 2008
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!
More information about the R-help
mailing list