scale_x_continuous( breaks = pretty_breaks(10),labels=scales::comma)+

x <- 1:4
y <- c(0, 0.0001, 0.0002, 0.0003)

dd <- data.frame(x, y)

scientific_10 <- function(x) {
parse(text=gsub("e", " %*% 10^", scales::scientific_format()(x)))
}

ggplot(dd, aes(x, y)) + geom_point()+scale_y_continuous(label=scientific_10)

labels=unit_format(unit = "k", scale = 1e-3, sep = “")
labels=unit_format(unit = “M", scale = 1e-6, sep = "")

相关文章:

  • 2021-07-18
  • 2022-12-23
  • 2021-11-19
  • 2021-05-29
  • 2022-12-23
  • 2021-12-20
猜你喜欢
  • 2022-02-22
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2021-09-26
  • 2021-11-19
相关资源
相似解决方案