本文介绍了如何在SPSS中创建具有颜色和图案的饼图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用GGRAPH \ GPL创建彩色和附加图案的饼图.模式的功能是可视化各个类别所属的主要类别.

I want to create a colored and additional pattern, pie chart with GGRAPH\GPL. The function of the pattern is to visualize the major category to which the respective category belongs to.

使用SPSS Chart Builder,我只能创建彩色或带图案的饼图.

With the SPSS Chart Builder I can only create a colored or a patterned pie chart.

相关的ELEMENT语句如下:

ELEMENT: interval.stack(position(summary.percent(COUNT))), color(myvar))

或者:

ELEMENT: interval.stack(position(summary.percent(COUNT))), texture.pattern(myvar))

推荐答案

采用为彩色饼图创建的语法,您可以通过简单地将texture.pattern(myVar)函数添加到Element语句中来添加纹理:

Taking the Syntax created for the colored pie chart you can add the texture by simply adding the texture.pattern(myVar) function into the Element statement:

  ELEMENT: interval.stack(position(summary.percent(COUNT))), color(krwirtsek_kombi), texture.pattern(krwirtsek_kombi))

您可以使用模板或通过比例声明内的map功能指定颜色和图案:

You can specify the color and pattern by using a template or via the map-function inside the scale statment:

SCALE: cat(aesthetic(aesthetic.color.interior), map(("<catvalue>", color."<rgb>"),  ...)
SCALE: cat(aesthetic(aesthetic.texture.pattern), map(("<catvalue>", texture.pattern.<patternconstant>), ...)

但是,当将ELEMENT语句中的color()和texture.pattern()函数结合在一起,并使用其他GPL功能进行修补时,这些其他函数的结果可能会很奇怪(请参阅).

However when combining the color() and the texture.pattern() functions in the ELEMENT Statement and the tinkering with oder GPL-funtions, the results of these other functions might get odd (see this question about category order).

这篇关于如何在SPSS中创建具有颜色和图案的饼图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 14:51