[R] need help formating plot axis to standard dollar formats
David Winsemius
dwinsemius at comcast.net
Sat Nov 14 02:55:12 CET 2009
?sprintf
?format
# or the function format passes arguments to:
?formatC
library(ggplot2)
?comma
--
David
On Nov 13, 2009, at 5:00 PM, Anderson, Chris wrote:
> I create a lot of plots with a dollar amount as the y-axis. How do I
> change the formatting so comma and $ are in place. Like $1000,000 or
> to use common dollar abbreviations like 100K?
>
> Chris Anderson
> Data Analyst
> Medical Affairs
> wk: 925-677-4870
> cell: 707-315-8486
> Fax:925-677-4670
>
>
>
>
>
> This electronic message transmission, including any attachments,
> contains
> information which may be confidential, privileged and/or otherwise
> exempt
> from disclosure under applicable law. The information is intended to
> be for the
> use of the individual(s) or entity named above. If you are not the
> intended
> recipient or the employee or agent responsible for delivering the
> message
> to the intended recipient, you are hereby notified that any
> disclosure, copying,
> distribution or use of the contents of this information is strictly
> prohibited. If
> you have received this electronic transmission in error, please
> notify the sender
> immediately by telephone (800-676-6777) or by a "reply to sender only"
> message and destroy all electronic and hard copies of the
> communication,
> including attachments. Thank you.
>
> For more information on Paradigm Management Services, LLC, please
> visit
> http://www.paradigmcorp.com
>
> [[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.
David Winsemius, MD
Heritage Laboratories
West Hartford, CT
More information about the R-help
mailing list