« R's short learning curve | Main | Cluster Analysis 101 »

May 22, 2009

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Eek! We'll be doing drop shadow and WordArt curvy things next!

If your graphics device supports transparency, I'd put the text on a transparent box, using strwidth and strheight to get the location where the text is going. Here's a start:

boxText <- function(x,y,string){
width=strwidth(string)
width=width+strwidth("m")
height=strheight(string)
height=height*2

rect(x-width/2,y-height/2,x+width/2,y+height/2,col="#77777766",border=NA)
text(x,y,string)

return(res)
}

Then do:

boxText(206,257, 'Caldera Rim')

Adjust colours and transparency levels to taste...

Barry

The comments to this entry are closed.

Search Revolutions Blog




Got comments or suggestions for the blog editor?
Email David Smith.
Follow revodavid on Twitter Follow David on Twitter: @revodavid
Get this blog via email with Blogtrottr
‚Äč