Conocimiento Sobre el Turismo Responsable Por Edades
tab_edad <- table(turismo$Q2,turismo$Q12_1)
tab_edad
##
## 1 2 3 4 5
## 1 164 91 96 52 36
## 2 102 46 53 42 47
barplot(tab_edad, main = "Conocimiento Turismo Responsable", xlab = "Edades", ylab = "Frecuencia", names.arg=c("< 25","25 - 40", "40 - 55", "55 - 65", "> 65"))
legend(x="topright", legend=c("Sí", "No"), fill = c("Black","Grey"))

Aspectos Importantes del Turismo Responsable
op3.1 <- count(turismo, Q3_1)
op3.2 <- count(turismo, Q3_2)
op3.3 <- count(turismo, Q3_3)
op3.1
## Q3_1 n
## 1 1 356
## 2 2 255
## 3 3 118
names(op3.1) <- c("R", "Acciones y Normativas")
names(op3.2) <- c("R", "Alteración Entorno Social")
names(op3.3) <- c("R", "Equidad/Justicia Laboral")
op3.1
## R Acciones y Normativas
## 1 1 356
## 2 2 255
## 3 3 118
op3.2
## R Alteración Entorno Social
## 1 1 235
## 2 2 225
## 3 3 269
op3.3
## R Equidad/Justicia Laboral
## 1 1 138
## 2 2 249
## 3 3 342
resultadoQ3 <- merge(op3.1, op3.2, by = "R", all = TRUE) # Unir df1 y df2
resultadoQ3 <- merge(resultadoQ3, op3.3, by = "R", all = TRUE) # Unir df3 al resultado anterior
resultadoQ3$R <- as.factor(resultadoQ3$R)
barplot(as.matrix(resultadoQ3[, 2:4]), beside = TRUE, col = c("dodgerblue3", "darkorchid3", "darkorange2"),
legend.text = rownames(df), ylim = c(0, 400),
main = "Aspectos del Turismo Responsable", xlab = "Categorías", ylab = "Valores")
legend(x="bottomright", legend=c("1", "2", "3"), fill = c("dodgerblue3","darkorchid3", "darkorange2"))

Aspectos en Cuenta para Organizar un Viaje
p4.1 <- sum(turismo$Q4_1)
p4.2 <- sum(turismo$Q4_2)
p4.3 <- sum(turismo$Q4_3)
p4.4 <- sum(turismo$Q4_4)
p4.5 <- sum(turismo$Q4_5)
p4.6 <- sum(turismo$Q4_6)
p4.7 <- sum(turismo$Q4_7)
p4.8 <- sum(turismo$Q4_8)
p4.9 <- sum(turismo$Q4_9)
p4.10 <- sum(turismo$Q4_10)
p4.11 <- sum(turismo$Q4_11)
p4.12 <- sum(turismo$Q4_12)
p4.1
## [1] 641
p4.2
## [1] 557
p4.3
## [1] 437
p4.4
## [1] 291
p4.5
## [1] 310
p4.6
## [1] 395
p4.7
## [1] 467
p4.8
## [1] 392
p4.9
## [1] 362
p4.10
## [1] 392
p4.11
## [1] 193
p4.12
## [1] 429
df_valores <- data.frame(Categoria = c("Costo", "Seguridad", "Oferta Turística", "Nº Desplazamientos", "T Desplazamientos", "Transporte Disponible", "Conocer Cultura", "Conocer Parajes", "Gastronomía", "Recomendaciones", "Exclusividad", "Temporada Año"), Suma = c(p4.1, p4.2, p4.3, p4.4, p4.5, p4.6, p4.7, p4.8, p4.9, p4.10, p4.11, p4.12))
ggplot(df_valores, aes(x = Categoria, y = Suma)) +
geom_bar(stat = "identity", fill = "blue") +
geom_text(aes(label = Suma), vjust = -0.3, size = 3) +
labs(title = "Aspectos en Cuenta para Organizar un Viaje", x = "Categoría", y = "Frecuencia") +
theme_minimal() +
theme(axis.text.x = element_text(size = 10, angle = 30, hjust = 1))

Afirmaciones Relacionadas a su Modo de Actuar
Preocupación por la Sostenibilidad
plot(x = factor(turismo$Q12_1), y = turismo$Q6_1, main = "Preocupación por la Sostenibilidad", xlab = "Rango de Edad", ylab = "Nivel de Preocupación", col = c("cadetblue2", "cadetblue3", "cadetblue4", "cadetblue2", "cadetblue3"))
legend(x="bottomleft", legend=c("< 25","25 - 40", "40 - 55", "55 - 65", "> 65"), fill = c("cadetblue2", "cadetblue3", "cadetblue4", "cadetblue2", "cadetblue3"))

Consciencia de Riesgos al Viajar
plot(x = factor(turismo$Q11), y = turismo$Q6_2, main = "Consciencia de Riesgos al Viajar", xlab = "Sexo", ylab = "Nivel de Consciencia", col = c("chartreuse4", "chocolate"),names.arg=c("Hombre","Mujer"))
legend(x="bottomleft", legend=c("Hombre", "Mujer"), fill = c("chartreuse4","chocolate"))

Fomento del Desarrollo Local
plot(x = factor(turismo$Q13), y = turismo$Q6_4, main = "Fomento del Desarrollo Local", xlab = "Nacionalidad", ylab = "Nivel de Afirmación", col = c("darkcyan", "darkgoldenrod"),names.arg=c("Hombre","Mujer"))
legend(x="bottomleft", legend=c("México", "España"), fill = c("darkcyan","darkgoldenrod"))

Cálculo de la Huella de Carbono de su Viaje
plot(x = factor(turismo$Q13), y = turismo$Q6_11, main = "Cálculo de la Huella de Carbono de su Viaje", xlab = "Nacionalidad", ylab = "Nivel de Responsabilidad", col = c("purple", "green3"),names.arg=c("Hombre","Mujer"))
legend(x="topleft", legend=c("México", "España"), fill = c("purple","green3"))

Participación en Redes y Actividades relacionadas al Turismo
Sostenible
plot(x = factor(turismo$Q12_1), y = turismo$Q6_15, main = "Participación en Redes y Actividades Relacionadas", xlab = "Rango de Edad", ylab = "Nivel de Participación", col = c("antiquewhite2", "antiquewhite3", "antiquewhite4", "antiquewhite3", "antiquewhite2"))
legend(x="topright", legend=c("< 25","25 - 40", "40 - 55", "55 - 65", "> 65"), fill = c("antiquewhite2", "antiquewhite3", "antiquewhite4", "antiquewhite3", "antiquewhite2"))

Comportamiento hacia aspectos del medio ambiente
p6.6 <- mean(turismo$Q6_6)
p6.7 <- mean(turismo$Q6_7)
p6.9 <- mean(turismo$Q6_9)
p6.10 <- mean(turismo$Q6_10)
p6.13 <- mean(turismo$Q6_13)
p6.6
## [1] 5.567901
p6.7
## [1] 4.739369
p6.9
## [1] 4.566529
p6.10
## [1] 4.825789
p6.13
## [1] 4.304527
df_valores <- data.frame(Categoria = c("Prevención daño ambiental/social","Conservación-protección ecoaistemas","Productos bajo impacto ambiental", "Reducir consumo y emisiones","Tecnología e innovción sostenible"), Prom = c(p6.6, p6.7, p6.9, p6.10,p6.13))
ggplot(df_valores, aes(x = Categoria, y = Prom)) +
geom_bar(stat = "identity", fill = "green4") +
geom_text(aes(label = Prom), vjust = -0.3, size = 3) +
labs(title = "Comportamiento hacia el medio ambiente", x = "Acciones", y = "Promedio") +
theme_minimal() +
theme(axis.text.x = element_text(size = 10, angle = 30, hjust = 1))

Comportamiento hacia la comunidad y su cultura
p6.5 <- mean(turismo$Q6_5)
p6.8 <- mean(turismo$Q6_8)
p6.12 <- mean(turismo$Q6_12)
p6.14 <- mean(turismo$Q6_14)
p6.5
## [1] 5.460905
p6.8
## [1] 5.94513
p6.12
## [1] 4.925926
p6.14
## [1] 3.993141
df_valores <- data.frame(Categoria = c("Comparto y aprendo sobre la comunidad","Respeto diversidad","Conservación del patrimonio","Condiciones laborales dignas"), Prom = c(p6.5, p6.8, p6.12, p6.14))
ggplot(df_valores, aes(x = Categoria, y = Prom)) +
geom_bar(stat = "identity", fill = "orange") +
geom_text(aes(label = Prom), position = position_stack(vjust = 0.5,)
, size = 3) +
labs(title = "Comportamiento hacia la comunidad y cultura", x = "Acciones", y = "Promedio") +
theme_minimal() +
coord_flip() +
theme(axis.text.x = element_text(size = 10, angle = 30, hjust = 1))

Se considera “Turista Responsable”
turismo$Q13 <- factor(turismo$Q13)
ggplot(turismo, aes(x = Q12, y = Q6_16, color=Q13)) +
geom_point() +
labs(title = "Turista Responsable", x = "Eades", y = "Nivel de Relación") +
scale_color_discrete(name = "País")

Disposición a pagar un mayor precio por un viaje más
responsable.
turismo$Q12_1 <- factor(turismo$Q12_1)
media_p6.17 <- mean(turismo$Q6_17)
ggplot(turismo, aes(x = Q12_1, y = Q6_17)) +
geom_violin(fill = "lightblue", color = "blue", alpha = 0.7) +
labs(title = "Disposición a pagar un mayor precio por un viaje más responsable", x = "Rango de Edad", y = "Nivel de Disposición") +
scale_x_discrete(labels = c("1" = "< 25", "2" = "25 - 40", "3" = "40 - 55", "4" = "55 - 65", "5" = "> 65")) + geom_hline(yintercept = media_p6.17, color = "red", linetype = "dashed", size = 1) +
annotate("text", x = 3, y = media_p6.17, label = paste("Media =", round(media_p6.17, 2)), vjust = -0.5, color = "red")
## Warning: Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0.
## ℹ Please use `linewidth` instead.
## This warning is displayed once every 8 hours.
## Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
## generated.

Nivel de Preocupación en su país por desarrollar Turismo
Responsable
ggplot(turismo, aes(x = Q13, fill = Q6_18)) +
geom_bar(position="dodge") +
labs(title = "Nivel de Preocupación en su país por desarrollar Turismo Responsable", x = "País") +
scale_x_discrete(labels = c("1" = "México", "2" = "España")) +
scale_fill_discrete(name = "Valor")
## Warning: The following aesthetics were dropped during statistical transformation: fill
## ℹ This can happen when ggplot fails to infer the correct grouping structure in
## the data.
## ℹ Did you forget to specify a `group` aesthetic or to convert a numerical
## variable into a factor?

Número de viajes realizados en el último año, Razones y
Planificación
hist(x = turismo$Q7, main = "Histograma - Nº de Viajes del Último Año", col = "forestgreen", xlab = "Nº de Viajes", ylab = "Frecuencia", xlim = c(0, 30))

turismo$Q9 <- as.factor(turismo$Q9)
turismo$Q12_1 <- as.factor(turismo$Q12_1)
turismo$Q10 <- as.factor(turismo$Q10)
ggplot(turismo, aes(x = Q12_1, fill = Q10)) +
geom_bar(position = "stack") +
facet_wrap(~ Q9, labeller = labeller(Q9 = c("1" = "Yo", "2" = "Otros", "3" = "Yo y Otros"))) +
labs(title = "Planificación del Viaje Relacionado a la Razón del Viaje y Edad",
x = "Rango de Edad", y = "Cantidad") +
scale_fill_manual(values = c("steelblue4", "royalblue1", "skyblue3", "royalblue4"),
name = "Razón Viaje", labels = c("1" = "Ocio o Visita", "2" = "Estudio", "3" = "Trabajo", "4" = "Otro")) +
scale_x_discrete(name = "Rango de Edad", labels = c("1" = "< 25", "2" = "25 - 40", "3" = "40 - 55", "4" = "55 - 65", "5" = "> 65")) +
theme(axis.text.x = element_text(angle = 45, hjust = 1))
