Using the new dollar_format() syntax in ggplot, I get unexpected behavior. Is there (yet) another argument to pass to make the sci-not go away?
x <- seq(0,100000,10000)
[1] 0e+00 1e+04 2e+04 3e+04 4e+04 5e+04 6e+04 7e+04 8e+04 9e+04 1e+05
dollar(x)
[1] "$0e+00" "$1e+04" "$2e+04" "$3e+04" "$4e+04" "$5e+04" "$6e+04" "$7e+04" "$8e+04" "$9e+04" "$1e+05"
Note that the
dollarfunction is now in thescalespackage. You can keep it from switching to scientific notation using thescipenoption. Note that this will affect ALL your output, not just this formatting.As @joran said, though,
dollarprobably should not allow scientific notation at all.