laurathepluralized / multi-agent-data-analysis

Apache License 2.0
2 stars 4 forks source link

Build Correlation Analysis Tab #7

Open hepaces89 opened 6 years ago

hepaces89 commented 6 years ago

Build the Correlation Analysis Tab

This tab will execute the correlation analysis algorithm and display the results

Requires:

Context:

Inputs:

Output:

hepaces89 commented 6 years ago

Hi Naeyon,

So the set up for this section would be very similar to the Stability Analysis ticket:

for the server code you will need the following bit of code. ` source("analysis.R")

result_col <- input$result_col numericCol <- c("vel_max.t.1", "vel_max.predator", "pitch_rate_max.predator", "turn_rate_max.predator")

categoryCol <- c("team_id", "allow_prey_switching.t.2.predator")

stabilityResults <- runCorrelation(df, result_col, numericCol, categoryCol) `

I am in the process of trying to get the session object to return the desired numeric cols and category cols that will be uploaded in the data loading page.

hepaces89 commented 6 years ago

Hi Nayeon,

You should be able to use this as a stub. https://github.com/laurathepluralized/multi-agent-data-analysis/tree/correlationAnalysis/correlationAnalysis

let me know if you have any questions.

Thanks

hepaces89 commented 6 years ago

I we should output the plot using https://shiny.rstudio.com/reference/shiny/1.0.2/plotOutput.html

hepaces89 commented 6 years ago

done