Skip to content

Commit 8e87df9

Browse files
removing unnecessary newlines with shorter axis labels
1 parent 9c163c6 commit 8e87df9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/inference.Rmd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -514,30 +514,30 @@ sample_estimates_500 <- rep_sample_n(airbnb, size = 500, reps = 20000) |>
514514
## Sampling distribution n = 20
515515
sampling_distribution_20 <- ggplot(sample_estimates_20, aes(x = sample_mean)) +
516516
geom_histogram(fill = "dodgerblue3", color = "lightgrey") +
517-
labs(x = "Sample mean price per night\n(dollars)", y = "Count") +
517+
labs(x = "Sample mean price per night (dollars)", y = "Count") +
518518
ggtitle("n = 20")
519519
520520
## Sampling distribution n = 50
521521
sampling_distribution_50 <- ggplot(sample_estimates_50, aes(x = sample_mean)) +
522522
geom_histogram(fill = "dodgerblue3", color = "lightgrey") +
523523
ylab("Count") +
524-
xlab("Sample mean price per night\n(dollars)") +
524+
xlab("Sample mean price per night (dollars)") +
525525
ggtitle("n = 50") +
526526
xlim(min_x(sampling_distribution_20), max_x(sampling_distribution_20))
527527
528528
## Sampling distribution n = 100
529529
sampling_distribution_100 <- ggplot(sample_estimates_100, aes(x = sample_mean)) +
530530
geom_histogram(fill = "dodgerblue3", color = "lightgrey") +
531531
ylab("Count") +
532-
xlab("Sample mean price per night\n(dollars)") +
532+
xlab("Sample mean price per night (dollars)") +
533533
ggtitle("n = 100") +
534534
xlim(min_x(sampling_distribution_20), max_x(sampling_distribution_20))
535535
536536
## Sampling distribution n = 500
537537
sampling_distribution_500 <- ggplot(sample_estimates_500, aes(x = sample_mean)) +
538538
geom_histogram(fill = "dodgerblue3", color = "lightgrey") +
539539
ylab("Count") +
540-
xlab("Sample mean price per night\n(dollars)") +
540+
xlab("Sample mean price per night (dollars)") +
541541
ggtitle("n = 500") +
542542
xlim(min_x(sampling_distribution_20), max_x(sampling_distribution_20))
543543
```
@@ -881,7 +881,7 @@ tail(boot20000_means)
881881
882882
boot_est_dist <- ggplot(boot20000_means, aes(x = mean)) +
883883
geom_histogram(fill = "dodgerblue3", color = "lightgrey") +
884-
labs(x = "Sample mean price per night \n (dollars)", y = "Count") +
884+
labs(x = "Sample mean price per night (dollars)", y = "Count") +
885885
theme(text = element_text(size = 12))
886886
887887
boot_est_dist
@@ -900,7 +900,7 @@ sample_estimates <- samples |>
900900
sampling_dist <- ggplot(sample_estimates, aes(x = sample_mean)) +
901901
geom_histogram(fill = "dodgerblue3", color = "lightgrey") +
902902
ylab("Count") +
903-
xlab("Sample mean price per night \n (dollars)")
903+
xlab("Sample mean price per night (dollars)")
904904
905905
annotated_sampling_dist <- sampling_dist +
906906
xlim(min_x(sampling_dist), max_x(sampling_dist)) +

0 commit comments

Comments
 (0)