НачатьНачать бесплатно

Visualize New Predictions

Now that you've formatted the data, it's time to create the plot of predicted popularity distributions. The plot_posterior data frame that you just created is already available in the environment. We will use that data frame to create a visualization to communicate the results of our analysis.

Это упражнение является частью курса

Bayesian Regression Modeling with rstanarm

Посмотреть курс

Инструкции к упражнению

  • Create a ggplot graphic with predict on the x-axis
  • Wrap the graphic so that each artist_name gets its own plot
  • Keep all facets of the plot in one column
  • Draw a density curve for the predicted popularity

Интерактивное практическое упражнение

Попробуйте выполнить это упражнение, дополнив этот пример кода.

# Create plot of 
ggplot(___, aes(x = ___)) +
	facet_wrap(~ ___, ___ = 1) +
	___()
Редактировать и запускать код