Comments (4)
@Court78 in the old app there is a note that Mozambique has five answers while the rest of the countries have integers (see below). But if you filter to Mozambique you get plenty of integer answers.
For all other countries it shows a proportion bar plot with no facets. For Mozambique, I get an error in the old app but based on the code it looks like it's supposed to show a set of facets ("Agree", etc).
Should I spend time on this one?
#**40_reserve_boundaries_aware**: Integer 0-10 in last HHS verison, but as factor (5 levels) for Mozambique
hhs_data %>%
dplyr::filter(iso3 == "MOZ") %>%
dplyr::count(`40_reserve_boundaries_aware`) %>%
data.frame()
X40_reserve_boundaries_aware n
1 0 5
2 10 172
3 2 4
4 3 7
5 4 3
6 5 59
7 6 22
8 7 13
9 8 45
10 9 19
11 Agree 318
12 Disagree 16
13 Neither 75
14 No reserve 206
15 Strongly agree 28
16 Strongly disagree 16
17 <NA> 1246
from hhs_dashboard.
@zross We've assigned numeric values to the factors. Agree = 7, Disagree =3, Neither = 5, No reserve = blank, Strongly agree = 10, Strongly disagree = 1
I added this to the meta data as well
Let me know if that makes sense
from hhs_dashboard.
That makes sense but I'd need to know how to deal with 0 and the in-between numbers. For example, how do I code 4?
Below is how I have it, but let me know if you want it changed.
"Strongly disagree" = 0,
"Strongly disagree" = 1,
"Strongly disagree" = 2,
"Disagree" = 3,
"Disagree" = 4,
"Neither" = 5,
"Agree" = 6,
"Agree" = 7,
"Strongly agree" = 8,
"Strongly agree" = 9,
"Strongly agree" = 10
from hhs_dashboard.
FYI, for Mozambique he is using a different plot from other countries. I will leave this for now. If you want to change eventually we can open a new issue (it will be confusing to users, I'm assuming, that there are different plots in this instance).
from hhs_dashboard.
Related Issues (20)
- Q40 HOT 1
- Q18 Mozambique HOT 1
- Add live search
- Fix crash on GTM Q40
- Fix crash on GTM Q44a/b
- Fix crash on GTM Q70a/b
- Add 2021 Indonesia data
- Add new questions from 2021 Indonesia data
- Remove Mozambique MA's that have only 2019 survey data
- Fix code for BRA 2022 Q63
- Fix code for BRA 2022 Q67
- Fix code for BRA 2022 Q77
- Fix code for BRA 2022 Q78
- Add question mapping
- Update plotting code to match new question numbers
- Update process-hhs-questions.R data to match new questions
- Update mod_main_chart.R to reflect new questions
- Update source data/process-raw-data.R to reflect new survey
- Add plotting functions for new questions with no existing plotting functions
- Losing data from footprint updates
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hhs_dashboard.