R studio – data science

0 comments

  1. Three tabs. The first tab is for univariate analysis. The second tab is for bivariate analysis. The third tab is for a spreadsheet of the numeric variables in the data.
  2. The inputs/outputs for the univariate analysis should be:
  • The variable of interest.
  • Do the analysis on the log scale or not?
  • The number of bins in the histogram.
  • The null value for a one-sample t-test.
  • Output the results of the one-sample t-test. The results of the test should be done on the log or non-log scale according to the user options.
  • Output a histogram if the variable is numeric and a barplot otherwise.
  1. The inputs/outputs for the bivariate analysis should be:
  • The two variables of interest.
  • Whether to log each variable. Only numeric variables should be logged.
  • Whether to add an OLS line.
  • Output a scatter plot if both variables are numeric, a boxplot if one is numeric and one is categorical, and a jitter plot if both are categorical.
  1. The spreadsheet tab should contain a Data Table with only the numeric variables. Use a map*() function to select these.
  2. Try to make your Shiny app as visually similar to my app as you can.
  • Hint: You can make this a lot easier by taking advantage of the modularity built into ggplot2:
  • Hint: I found it easier to use geom_boxploth() from the ggstance library instead of using coord_flip().
  • Hint: Think carefully about which variables should be treated as categorical and which should be treated as quantitative. Transform as appropriate when you load the data.

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}