当前位置:网站首页>Drawing lollipop chart with R language

Drawing lollipop chart with R language

2022-07-23 06:33:00 Mrrunsen

Lollipop charts are similar to bar charts . Generally, it can be used geom_point() and geom_segment() Draw a lollipop chart . Borrow the data from the bar chart , We use lollipop chart to realize it .

library(ggplot2)
theme_set(theme_bw())

ggplot(mtcars, aes(x=`car name`, y=mpg_z, label=mpg_z)
原网站

版权声明
本文为[Mrrunsen]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/204/202207221825287300.html