我可以在R中的ggplot2中使用晶格中的带状疱疹吗? [英] Can I use shingles from lattice in ggplot2 in R

查看:150
本文介绍了我可以在R中的ggplot2中使用晶格中的带状疱疹吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以使用 shingles 来定义 ggplot2 中的特定范围。据我了解, shingles 是一种生成组的方法。我们可以在 ggplot2 facet_grid shingle >获取图表?

解决方案

继续评论, ggplot 无法绘制带状疱疹(格子在带状物上绘制具有特殊指示符的带状疱疹),并且默认情况下不能产生重叠群。

然而, ,我推出了这个出色的 PDF 文档,其目的是生成一个gpplot2版本Depayan出色的莱迪思书中的每个人物( Lattice:使用R进行多元数据可视化)。
$ b

第31页包含一个自定义函数 fn()它复制 equal.count()的行为,据我所知,提供相关ct数据结构要用重叠的带状疱疹进行绘图。 PDF包含ggplot中的​​带状疱疹的例子,你可以玩。



所以不知道这是否回答Q - 但至少它似乎可以fudge ggplot生成使用木瓦概念的地块。


It is possible to use the shingles to define specific ranges in ggplot2. As far as i understand shingles are a way to generate groups. Can we create such shingles and use them in ggplot2 facet_grid to obtain graphs?

解决方案

Following up from the comments, ggplot can't draw shingles (in the way lattice draws shingles with special indicators in the strip) and by default doesn't have a means of producing the overlapping groups.

However, I cam across this excellent PDF document which aims to produce a gpplot2 version of every figure in Depayan's excellent Lattice book (Lattice: Multivariate Data Visualization with R).

Page 31 contains a custom function fn() which replicates the behaviour of equal.count(), as far as I can tell, to provide the correct data structure to plot with overlapping shingles. The PDF contains plenty of examples of "shingles" in ggplot that you can play with.

So not sure if this answers the Q - but at least it appears one can fudge ggplot into producing plots that use the shingle concept.

这篇关于我可以在R中的ggplot2中使用晶格中的带状疱疹吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆