r - 使用库“ggplot2”创建一个可视化,显示出现至少 2000 次的标记的频率
问题描述
这是我当前在名为“q_content”的列上工作的代码。
*tidy_text %>%
count(q_content, sort = TRUE) %>%
filter(n > 2000) %>%
mutate(word = reorder(q_content, n)) %>%
ggplot(aes(q_content, n)) +
geom_bar(stat = "identity") +
xlab(NULL) +
coord_flip()*
我的错误:
*Error: Must group by variables found in `.data`.
* Column `q_content` is not found.
Run `rlang::last_error()` to see where the error occurred.*
解决方案
推荐阅读
- php - Mysql选择具有相同值列的行
- python - 我怎样才能把它放在一个循环中,在开始时尝试使用一个while循环,但我会得到错误的输出
- apache-spark - 在写入雪花之前是否必须将胶水动态帧转换为火花数据帧?
- wordpress - 用于 wordpress 日志的 logrotation
- java - 从二维数组或矩阵中删除重复项
- oracle - 如何在 Oracle ADW 中上传带有西里尔文的数据?
- c++ - 抛出错误异常:读取访问冲突
- macos - 在 MAC 上找不到 VScode 实时服务器扩展
- c++ - “类不存在默认构造函数”即使我有构造函数?
- python - Python模块中全局变量中使用的补丁方法