Erika Cordova
Erika Cordova

Reputation: 31

Change of Font in R - Bubble Charts

I'm breaking my head trying to change the font of all the titles (main so as axis-titles) in this Bubble Chart. I would like to use "Neutraface Text Demi Alt", size +14. Could someone please help me? Do you know maybe any fancy Bubble Chart code?

crime <- read.csv("http://datasets.flowingdata.com/crimeRatesByState2005.tsv", header=TRUE, sep="\t")
radius <- sqrt( crime$population/ pi )
2
[1] 2
symbols(crime$murder, crime$burglary, circles=radius, inches=0.35, fg="white", bg="grey", xlab="Murder Rate", ylab="Burglary Rate")
text(crime$murder, crime$burglary, crime$state, cex=0.5)

Upvotes: 2

Views: 400

Answers (1)

Carl Witthoft
Carl Witthoft

Reputation: 21532

At least on my MacOS setup, with R3.0.0, I have success with

plot(x,y,family='Times')

or many other fonts currently installed. Oddly, Symbol didn't display (got the usual empty rectangles).

Upvotes: 1

Related Questions