need to make plots for visualizing fixation alpha experiment. This was the goal of #53 but then there were too many moving parts to get there (e.g. making a library and updating all the old code to match).
Here, is where there will be organization over the plots to make.
Over Days
[x] cpoke_dur_stats_raw: similar to the plot made during EDA for the fixation project for DMS
depending on if settling_dur_determines_fix is on, determine the avg failed cpoke (plot in red)
determine the avg successful cpoke (plot in green)
plot the required fixation in gray
plot the initial fix dur for the day in black
[x] cpoke_dur_stats_relative: same as plot above but fixation_dur is subtracted off at each trial so that a success must be greater than 0 and fail is less than 0. init fix is not on plot. This is for looking at day by day growth
[x] Food Puck to rig/tech: just add in another category of was foodpuck?
[x] Give type, curriculum?: basically just a categorical plot
[x] Trial Timing: still contains pre, stim, post and doesn't account for relationship between settling in and delay dur and pre go dur. will want to add some logic steps to this specific to FixationGrower & leave DMS2 as is.
[x] failure rate:
depending on if settling_dur_determines_fix is on plot either the multi_cpoke rate (groked to trials or raw or both) or violation rate
[x] n failed pokes per trial: n_settling_ins (might already exist?
[x] Run time: might already have this made, will need to see how axes play together
[x] ITI info: avg iti both for the animal and the sma. match the colors in the within session plot
[x] min max fix: some sort of box plot or swarm plot combo showing the distribution of delays for a specific session. Plots made for give delay dur would be good for this as a reference.
[x] over session delta fix: if growth is fixed, then take the delta within the day. If the growth is overnight, take yesterday's value and compare to today to see how much it will change. WIll need to be some df wrangling for this
[x] Update Water restriction: such that the 20% line isn't plotted to keep a better idea of what is going on.
Over days proposed structure (bold needs to be created)
rig/techsession/foodpuck -- mass -- water
stage -- run time --trials
perf -- perf bars -- stage
side bias 3 plots
inter trial stats -- time to spoke -- give type/curriculum/conditionfailure rates -- n pokes/trial -- min/max fix w/i date (boxplot etc)
cpoke dur stats raw -- cpoke dur states relative -- max fix delta over days
Over Trials
Start here tomorrow!
[x] Cpoke dur over trials with valid time marked
[x] Cpoke durs relative to go (big histogram)
[x] Failed settling ins, violations and valid cpoke histograms (small)
Multi plots
[ ] #56
days in stage avg & by animal
days total avg & by animal
relative to start: hit rate, NA rate, time to spoke
rig switches
idea: bar plot with n days in current stage for the probe stages so you know when complete?
Want to make the transition from viol on -> off better for the plots! discards the old data and I really want to be able to see it
[ ] filter for R043 min date 2024-08-03, max date is none
[ ] see if i can iteratively, day by day, create the dfs. Or, find the days with settling in dets is on and calcultate one way and then off calcualte the other and then merge them.
need to make plots for visualizing fixation alpha experiment. This was the goal of #53 but then there were too many moving parts to get there (e.g. making a library and updating all the old code to match).
Here, is where there will be organization over the plots to make.
Over Days
[x] cpoke_dur_stats_raw: similar to the plot made during EDA for the fixation project for DMS depending on if settling_dur_determines_fix is on, determine the avg failed cpoke (plot in red) determine the avg successful cpoke (plot in green) plot the required fixation in gray plot the initial fix dur for the day in black
[x] cpoke_dur_stats_relative: same as plot above but fixation_dur is subtracted off at each trial so that a success must be greater than 0 and fail is less than 0. init fix is not on plot. This is for looking at day by day growth
[x] Food Puck to rig/tech: just add in another category of was foodpuck?
[x] Give type, curriculum?: basically just a categorical plot
[x] Trial Timing: still contains pre, stim, post and doesn't account for relationship between settling in and delay dur and pre go dur. will want to add some logic steps to this specific to FixationGrower & leave DMS2 as is.
[x] failure rate: depending on if settling_dur_determines_fix is on plot either the multi_cpoke rate (groked to trials or raw or both) or violation rate
[x] n failed pokes per trial: n_settling_ins (might already exist?
[x] Run time: might already have this made, will need to see how axes play together
[x] ITI info: avg iti both for the animal and the sma. match the colors in the within session plot
[x] min max fix: some sort of box plot or swarm plot combo showing the distribution of delays for a specific session. Plots made for give delay dur would be good for this as a reference.
[x] over session delta fix: if growth is fixed, then take the delta within the day. If the growth is overnight, take yesterday's value and compare to today to see how much it will change. WIll need to be some df wrangling for this
[x] Update Water restriction: such that the 20% line isn't plotted to keep a better idea of what is going on.
Over days proposed structure (bold needs to be created) rig/techsession/foodpuck -- mass -- water stage -- run time --trials perf -- perf bars -- stage side bias 3 plots inter trial stats -- time to spoke -- give type/curriculum/condition failure rates -- n pokes/trial -- min/max fix w/i date (boxplot etc) cpoke dur stats raw -- cpoke dur states relative -- max fix delta over days
Over Trials
Start here tomorrow!
Multi plots
idea: bar plot with n days in current stage for the probe stages so you know when complete?
Little things