How to realize divergent positive and negative graphs by ggplot2
This article introduces the relevant knowledge of "how to achieve divergent positive and negative diagrams in ggplot2". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Once the data is loaded and processed
Library (ggplot2) # use mtcars dataset data ("mtcars") # to retain car name and create a new column of mtcars$car_name