ggplotを使用して2つのテーブルを作成する際に問題があります。 は、私は2つのテーブルを持っている:ggplotを使用して2つのテーブルのgeom_barを作成する方法
1)
characteristic men_weekly_earnings
1 16 to 24 years 493
2 16 to 19 years 392
3 20 to 24 years 507
4 25 to 34 years 755
5 35 to 44 years 964
6 45 to 54 years 1011
7 55 to 64 years 1021
8 65 years and older 942
2)
characteristic women_weekly_earnings
1 16 to 24 years 451
2 16 to 19 years 357
3 20 to 24 years 468
4 25 to 34 years 679
5 35 to 44 years 781
6 45 to 54 years 780
7 55 to 64 years 780
8 65 years and older 740
各テーブルには、異なる年齢で毎週収入のデータを持っています。 私の目標は、2つのテーブルを組み合わせて like thisになるようにすることです。
x軸が特性列、y軸がweekly_earnings列です。今私は、男性のテーブルのために(このコードを試みたが、私が?
はありがとう今何ができる
ggplot(data = men) + geom_col(mapping = aes(x= characteristic,y= men_weekly_erning))
を働いていないために
。
あなたが得ているエラーは何ですか? – mannym