当前位置:网站首页>A line of R code draws the population pyramid
A line of R code draws the population pyramid
2022-07-07 04:49:00 【Mrrunsen】
Population pyramid (Population pyramid chart) It is essentially a histogram (Histogram), It can show the population structure of different ages and male and female groups , Used to understand the population distribution of a country or region , Aging and other information .
Xiaobian recommends a function , Can quickly plot !
Install and load now R package :
install.packages("ggcharts")
library(ggcharts)
next step , see {ggcharts} Data set of “popch” The first six lines of :
head(popch)
among ,age Age groups ,sex For gender ,pop Represents the population .
Last , A line of code draws a population pyramid
:
pyramid_chart(popch, age, pop, group = sex)
Take it away, everyone. No thanks ~
All right. , Today's content is here .
If it helps , Remember to share it with those who need it
!
边栏推荐
- EasyCVR平台接入RTMP协议,接口调用提示获取录像错误该如何解决?
- [team learning] [34 issues] scratch (Level 2)
- Chapter 9 Yunji datacanvas was rated as 36 krypton "the hard core technology enterprise most concerned by investors"
- 浙江大学周亚金:“又破又立”的顶尖安全学者,好奇心驱动的行动派
- [practice leads to truth] is the introduction of import and require really the same as what is said on the Internet
- [team learning] [34 sessions] Alibaba cloud Tianchi online programming training camp
- Oracle -- 视图与序列
- Zhou Yajin, a top safety scholar of Zhejiang University, is a curiosity driven activist
- DFS和BFS概念及实践+acwing 842 排列数字(dfs) +acwing 844. 走迷宫(bfs)
- EasyCVR集群版本添加RTSP设备提示服务器ID错误,该如何解决?
猜你喜欢
Depth first traversal template principle of tree and graph
Digital chemical plant management system based on Virtual Simulation Technology
C#使用西门子S7 协议读写PLC DB块
窗口可不是什么便宜的东西
[team learning] [34 sessions] Alibaba cloud Tianchi online programming training camp
九章云极DataCanvas公司获评36氪「最受投资人关注的硬核科技企业」
Network Security Learning - Information Collection
用CPU方案打破内存墙?学PayPal堆傲腾扩容量,漏查欺诈交易量可降至1/30
Intel and Xinbu technology jointly build a machine vision development kit to jointly promote the transformation of industrial intelligence
Section 1: (3) logic chip process substrate selection
随机推荐
MySQL null value processing and value replacement
What work items do programmers hate most in their daily work?
Easycvr cannot be played using webrtc. How to solve it?
AI landing new question type RPA + AI =?
C#使用西门子S7 协议读写PLC DB块
The root file system of buildreoot prompts "depmod:applt not found"
Station B boss used my world to create convolutional neural network, Lecun forwarding! Burst the liver for 6 months, playing more than one million
图灵诞辰110周年,智能机器预言成真了吗?
掌握软件安全测试方法秘笈,安全测试报告信手捏来
Win11控制面板快捷键 Win11打开控制面板的多种方法
Canteen user dish relationship system (C language course design)
namespace基础介绍
MySQL split method usage
Introduction to namespace Basics
赠票速抢|行业大咖纵论软件的质量与效能 QECon大会来啦
EasyCVR平台接入RTMP协议,接口调用提示获取录像错误该如何解决?
【数模】Matlab allcycles()函数的源代码(2021a之前版本没有)
Wechat can play the trumpet. Pinduoduo was found guilty of infringement. The shipment of byte VR equipment ranks second in the world. Today, more big news is here
窗口可不是什么便宜的东西
leetcode 53. Maximum Subarray 最大子数组和(中等)