0
推荐
5754
阅读
ggplot中的横坐标标签的修改和排序问题
1.在用ggplot画图的过程中,如果我们需要对离散型横坐标的标签进行对应更改的话,可以使用scale_x_discrete函数:ggplot(data = trip, aes(x = as.factor(usertype))) +
geom_histogram(colour = "black", fill = "skyblue", stat = "count") +
scale_x_discrete(breaks = c("Customer", "Subscriber"),
...
0
推荐
1466
阅读
R语言markdown-html标头问题
---
title: "Task4"
author: "韩冰冰"
date: "2018年8月30日"
output:
html_document:
number_sections: TRUE
toc: TRUE
toc_float: TRUE
code_folding: show
fig_width: 7
fig_height: 4.5
theme: united
highlight: tango
---
```{r setup, include=FALSE}
knitr::opts_chunk$set...