[R] Label axis with strings instead of numbers

Rui Barradas ruipbarradas at sapo.pt
Thu Nov 29 17:13:01 CET 2012


Hello,

See the ?axis function, argument 'labels'.

Hope this helps,

Rui Barradas
Em 29-11-2012 12:20, seanlilley escreveu:
> I have created a bubble plot in R using the following formula:
>
> symbols(Data$Day.Number,Data$Team,circles=Data$Total.amount, inches=0.5,
> fg="white",bg="red",xlab="Day Number",ylab="Team")
>
> The data set is called Data, and I have the columns Day.Number, Team and
> Total.amount.
>
> The data is plotting fine, but where my y axis should have the names of each
> team, it instead labels 1,2,3,4,,,,
>
> How do I edit this to label the axis with the names of the teams instead?
>
> Thanks
> Sean
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Label-axis-with-strings-instead-of-numbers-tp4651275.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.




More information about the R-help mailing list