简体   繁体   中英

Horizontal scale bar in R plot

When I plot my fitted models in R, I get the output with a vertical scale bar. Can some one kindly tell me how to place a horizontal scale bar in R plots instead of vertical? Thanks in advance.

Not sure what you want to do.

Here are some possible solutions:

1) If using `library(ggplot2)

add + coord_flip()

2) If using plot

plot(x = value, y = 1:length(name),...)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM