Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project - Maria Carda #92

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Project - Maria Carda #92

wants to merge 1 commit into from

Conversation

mariacardag
Copy link

Visualization of the housing crisis in Spain according to official data from the Ministry of Transportation

Copy link

netlify bot commented Dec 30, 2024

Deploy Preview for mucss-dataviz ready!

Name Link
🔨 Latest commit 471469c
🔍 Latest deploy log https://app.netlify.com/sites/mucss-dataviz/deploys/6772d6ef24b048000981c3bc
😎 Deploy Preview https://deploy-preview-92--mucss-dataviz.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Enchufa2 Enchufa2 marked this pull request as ready for review January 9, 2025 20:46
Copy link
Member

@Enchufa2 Enchufa2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Some minor comments below.

title: "How housing is no longer a right"
description: Visualization of the housing crisis in Spain according to official data from the Ministry of Transportation.
categories: "2024"
author: Maria Carda Gargallo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Carda-Gargallo. Otherwise, the template would think that only Gargallo is your surname.


The graph shows the *Quarterly evolution of the appraised value of free housing per quarter in each Autonomous Community with respect to the quarter where the price of housing peaked in each community*, i.e. the variation in the appraised price of housing with respect to the 2008 crisis. It highlights the values of three communities (Madrid, Baleares and Canarias), which are those with the fastest growth trends in recent months.

![Original graph](https://raw.githubusercontent.com/mariacardag/datavizclass/main/image.png)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please set it as external as e.g. David does here.

The second part is to represent the highlighted regions, which are those contained in the vector of the previous steps and they are colored by region.

```{r}
mi_grafico_mal <- mi_grafico_mal + geom_step(data = subset(data_filtered, CCAA %in% comunidades_destacadas), aes(color = CCAA),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this line is too wide, and goes off the page in the resulting HTML depending on the screen size. It's a good practice to wrap your code so that every line has a maximum length of 80 characters approx. Review the rest of the post to solve these kind of problems, please.


However, this final graph has an issue since Ceuta and Melilla are not represented in the original graph. Therefore, the data is filtered to eliminate this two regions and then the code is executed altogether to represent the graph correctly.

```{r, fig.height=8, fig.width=17}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the option preview = TRUE so that this image is highlighted in the gallery.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants