我怎样才能创建饼图和条形图,从数据的本摘要R:
gender race.ethnicity parental.level.of.education
female:518 group A: 89 associate's degree:222
male :482 group B:190 bachelor's degree :118
group C:319 high school :196
group D:262 master's degree : 59
group E:140 some college :226
some high school :179