我正在使用R通过heatmap2从一个矩阵创建一个热图,我想将这些图像分组到一个大图像中-我通常使用layout()来实现这一点-但这不起作用,因为heatmap2使用了布局,显然布局不是递归工作的。
有没有人有关于如何在没有布局的情况下将两张图片组合在一起,或者如何让布局支持递归调用的建议?
mat = matrix(nrow=3,nrow=3,1:9)
layout(matrix(nrow=2,ncol=1))
heatmap.2(mat) ## overrides the layout and produces only one plot that takes whole screen
使用点,基本布局将节点放入层中。如果创建子图,则将矩形内的相关节点分组,但节点仍位于层中,而这些层受子图外部节点的影响。
有时候,这很棒。但是有时,当一个子图是一个独立的视觉实体时,能够在不考虑图的其他部分的层次的情况下布局它的内容可能是很好的。例如,如下所示:
digraph x {
subgraph one {
a [ label="a\nvery\nlong\nlabel" ]
b [ label="another\nvery\nlong\nlabel" ]
c [ label="still\nmore\nlong\nl
我有4 x 26 = 104个字符串格式的类别 a 34
b 53
c 24
...
z 23
aa 345
..
cz 232 我用海运条形图把它做成了条形图。但是,我不想将轴上的所有类别都显示为重叠,并且无论如何都是线性的。我试过了 ax.yaxis.set_major_locator(ticker.MaxNLocator(4)) 但这只需要a,b,c,d而不是a,aa,ba,ca。 我在其他定位器上也没有任何运气。有没有办法(最好是优雅的)做到这一点?
当尝试合成Verilog设计(我想生成一个示意图)时,我得到以下警告:
Synthesizing Unit <rising>.
Related source file is "C:\PPM\PPM_encoder\detectors.v".
WARNING:Xst:647 - Input <in> is never used. This port will be preserved and left unconnected if it belongs to a top-level block or it belongs to a sub-bloc