我正在为报告创建几个刻面图.刻面的数量在2到8之间变化.理想情况下,我希望每个刻面的绝对大小(跨越图表)是相同的(例如4x4厘米),以便更容易比较它们(它看起来也更好) ).
那可能吗?
df1 <- structure(list(group1 = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L,1L, 1L, 1L, 1L, 1L), .Label = c("S1", "S2"), class = "factor"), group = structure(c(1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L), .Label = c("A", "B", "C", "D", "E"), class = "factor"), value = 1:12), class = "data.frame", row.names = c(NA, -12L), .Names = c("group1", "group", "value"))
df2 <- structure(list(group1 = structure(c(2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L), .Label = c("S1", "S2"), …Run Code Online (Sandbox Code Playgroud) 我想知道仅使用 ggplot 是否可以将不同的主题分配给不同的方面。
这个问题关系到这一个,我觉得通过@baptiste提供的解决方案应该是最好的一个。
使用他的代码,我获得了以下图:
有了这个数据:
RIM BlackBerry Pearl Palm Treo 700p Motorola Q Nokia 9300 Sony Ericsson M600i Sidekick3 id
Compact 6.9 5.7 6.7 4.5 5.1 3.6 Compact
Quality of display 7.5 6.3 7.3 5.1 6.2 3.8 Quality of display
Push email availability 8.2 7.4 6.4 6.4 6.0 4.5 Push email availability
Brand image 8.6 8.5 7.2 6.5 4.5 3.0 Brand image
Comfortable to call 7.4 6.9 6.1 4.2 5.2 3.1 Comfortable to call
High prestige 7.2 …Run Code Online (Sandbox Code Playgroud)