腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(2488)
视频
沙龙
1
回答
ggplot
geom_histogram
-
geom_histogram
在做
什么
?
、
、
设置边界似乎会更改数据分布的位置,我在函数使用中遗漏了
什么
?"red")) %>% mutate(prop_white = 1 - prop_red)
geom_histogram
(color = "white", binwidth = 0.025) + labs(title="c1
浏览 14
提问于2020-05-25
得票数 0
1
回答
放置aes(x=…)的差异()或geom()
、
、
放置aes(x=…)有
什么
区别?在
ggplot
()或geom()中(例如,下面的
geom_histogram
() ):
ggplot
(diamonds) + ggtitle("Diamond Price Distribution")2.在geom()
浏览 0
提问于2018-05-07
得票数 0
1
回答
在r中的一个图上创建多个直方图属性的最佳代码
、
、
、
、
colour="blue") breaks= hist(X, plot = F)$breaks, colour="blue") p3 <-
ggplot
() +
geom_histogram
(aes(x = pp3,),breaks = hist(X, plot = F)$breaks, colour="
浏览 16
提问于2021-04-26
得票数 1
2
回答
有条件地改变一个直方图的颜色,而不是同时显示两个条形轮廓?
、
、
、
为一个示例复制下面的代码:rand <- sample(1:500, 1200, replace=T)
ggplot
(data=dat, aes(x=val,colour=cond, fill=cond)) + fa
浏览 2
提问于2016-04-08
得票数 0
回答已采纳
2
回答
尝试使用填充美学绘制两个直方图时出现问题
、
(db1, aes(x=val)) +
geom_histogram
() PF <-
ggplot
(dbf, aes(x=val)) +
geom_histogram
() 我想要得到这个,P1和P2
ggplot
(db1, aes(x=val)) +
geom_histogram
(fill="red但是我认为应该可以使用的代码是,P1和
浏览 12
提问于2019-05-28
得票数 2
回答已采纳
1
回答
有没有一种不用输入列名而只输入列#的方式来使用
ggplot
标注呢?
、
、
推荐的
ggplot
方式:他们用我想做的方式:
ggplot
(mtcars,aes(x=[[1]]))+
geom_histogram
为
什么
ggplot
不能让我按它的列调用我的变量?为
什么
ggplot
在这里这么严格?有这方面的工作
浏览 5
提问于2015-03-08
得票数 1
回答已采纳
1
回答
复制
ggplot
中的hist中断,而不包含绘图外部的函数。
、
(faithful, aes(waiting)) + 但这不是
ggplot
(faithful, aes(waiting)) + Error: Aesthe
浏览 0
提问于2018-05-06
得票数 0
2
回答
在
ggplot
2中继承的限制是
什么
?
、
、
我一直在试图找出一些关于
ggplot
2的事情,以及补充性的论点是如何从第一部分
ggplot
()继承的。具体来说,如果继承是在geom_***部分之外传递的。我有一个数据直方图:这会产生一个很好的图表,尽管断点是默认的。在我看来(一位承认的新手),
geom_histogram
()是从
ggplot
()继承数据规范的。如果我想有一种更聪明的方法来设置中断,我可以使用这样的过程
浏览 7
提问于2015-05-19
得票数 5
回答已采纳
3
回答
用
ggplot
2在r中绘制矢量直方图
、
>
ggplot
(rivers)+
geom_histogram
(aes(rivers))然后我找到了,并发现我可以通过以下方式实现我的目标:or我阅读了
ggplo
浏览 3
提问于2017-10-23
得票数 3
2
回答
定义grid.arrange(),所以第三幅图在中间?
、
、
我正在用
ggplot
2制作三个情节。我想把它们放在同一个地方。为了将它们放到相同的空间中,我使用的是grid.arrange(),它有2列2行。library(
ggplot
2)
geom_histogram
()
geom_histogram
() P3 <-
ggplo
浏览 4
提问于2021-02-01
得票数 1
回答已采纳
1
回答
如何最小化r中直方图上的间隙
、
、
598.247400459265, ))library(
ggplot
2)
ggplot
(data, aes(x=mx)) +
geom_histogram
(bins=
浏览 10
提问于2020-02-27
得票数 0
1
回答
在R的1个绘图区中放置4个直方图
、
、
例如,
ggplot
(filter(mpg, cty == c(15,16,17,18)), aes(x = displ)) +
geom_histogram
(binwidth = 0.05)
ggplot
(filter(mpg, cty == c(19,20,21,22)), aes(x = displ
浏览 9
提问于2020-02-01
得票数 0
1
回答
对数变换与
ggplot
缩放的差异
、
geom_histogram
(bins = 100) + 在
ggplot
中log变换和缩放不同的原因是
什么
?更新:g2 <-
ggplot
(data.frame(x), aes(x)) +
geom_histogram
(bin
浏览 4
提问于2017-12-18
得票数 0
回答已采纳
2
回答
在
ggplot
2中分组时出现错误的历史记录
、
rnorm(1000),rnorm(1000)+3),
geom_histogram
(alpha=0.5) ?正确的版本
ggplot
(dat,aes(x=x))+
geom_histogram
(data=subset(dat,y=='A&
浏览 12
提问于2019-04-04
得票数 0
回答已采纳
2
回答
迭代地在映射函数中应用
ggplot
函数
、
、
、
., function(x)) nm <- names(df)print(
geom_histogram
()) } mtcars
浏览 1
提问于2017-10-04
得票数 3
回答已采纳
1
回答
拟合曲线与直方图格图
、
df = data.frame(x=rnorm(100))
ggplot
(df, aes(x=x, y=..density..)) +
geom_histogram
() + geom_density()
浏览 1
提问于2015-07-24
得票数 6
回答已采纳
1
回答
如何在代码块内插入子数字分页符
、
、
、
、
LETTERS[1:5], fig.ncol=2, out.width='0.4\\linewidth'}df <- data.frame(a = runif(50))打印(P)P <-
ggplot
(df,aes(x=a)) +
geom_histogram
(bins=10) 打印(
浏览 2
提问于2018-10-31
得票数 1
2
回答
在单独的图表中绘制多个直方图系列
ggplot
2
、
、
n)samples <- data.frame(y_1_list, y_2_list, y_3_list, y_4_list)
ggplot
(data = samples, aes(y_1_list)) + 我想在2x2网格上为这些系列中的每一个绘制四个独立的直方图
浏览 0
提问于2017-07-21
得票数 0
1
回答
..count..或者..density..作为
ggplot
2中的变量名
、
、
、
我想最终做到这一点:density=TRUE } else
ggplot
(diamonds,aes(x=price)) +
geom_histogram
(aes
ggplot
(diamonds,aes(x=price)) +
geom_his
浏览 1
提问于2013-06-04
得票数 2
回答已采纳
3
回答
将图例的α值与
ggplot
2中的直方图匹配
、
、
0.33181364 a 0.29692656 c 0.3509706library(
ggplot
2)
geom_histogram
(data=subset(pp, fill == 'a'),
geom_
浏览 1
提问于2018-10-31
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
热门
标签
更多标签
云服务器
ICP备案
云直播
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券