0
我是R初學者。創建堆積條形圖的最佳方式是什麼(總計爲100%)?如何在R中創建堆棧條?
以下是我的日期示例。我有兩個變量,想用Var 1代表x軸,Var 2代表y軸,Freq代表數據。
Var1 Var2 Freq
1 1 01 ONE FAMILY HOMES 127
2 2 01 ONE FAMILY HOMES 633
3 3 01 ONE FAMILY HOMES 1859
4 4 01 ONE FAMILY HOMES 4722
5 5 01 ONE FAMILY HOMES 2144
6 1 02 TWO FAMILY HOMES 107
7 2 02 TWO FAMILY HOMES 833
8 3 02 TWO FAMILY HOMES 3503
9 4 02 TWO FAMILY HOMES 2859
10 5 02 TWO FAMILY HOMES 799