{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","width":540,"data":{"url":"https://nicholesickel.github.io/data.symptoms/monthlySymptoms.csv"},"params":[{"name":"mySelection","bind":{"input":"radio","name":"symptom:","options":["Effort","Hopeless","Nervous","Restless","Sad","Worthless"]},"select":{"type":"point","fields":["symptom"]}}],"encoding":{"x":{"field":"month","type":"quantitative","axis":{"title":"Month","grid":true}},"y":{"field":"symptomReportedFrequently","type":"quantitative","axis":{"title":"% of group who reported symptom","grid":true}},"color":{"condition":{"param":"mySelection","empty":false,"field":"symptom","scale":{"domain":["Effort","Hopeless","Nervous","Restless","Sad","Worthless"],"range":["rgb(50, 168, 82)","rgb(49, 77, 214)","rgb(214, 156, 49)","rgb(232, 41, 28)","rgb(240, 79, 162)","rgb(58, 232, 215)"]}},"value":"black"},"opacity":{"condition":{"param":"mySelection","empty":false,"value":1},"value":0.1}},"mark":"circle"}

{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","width":540,"data":{"url":"https://nicholesickel.github.io/data.symptoms/ageSymptom.csv"},"params":[{"name":"mySelection","bind":{"input":"radio","name":"symptom:","options":["Effort","Hopeless","Nervous","Restless","Sad","Worthless"]},"select":{"type":"point","fields":["symptom"]}}],"encoding":{"x":{"field":"age","type":"quantitative","axis":{"title":"age","grid":true}},"y":{"field":"symptomFrequency","type":"quantitative","axis":{"title":"% of group who reported symptom","grid":true}},"color":{"condition":{"param":"mySelection","empty":false,"field":"symptom","scale":{"domain":["Effort","Hopeless","Nervous","Restless","Sad","Worthless"],"range":["rgb(50, 168, 82)","rgb(49, 77, 214)","rgb(214, 156, 49)","rgb(232, 41, 28)","rgb(240, 79, 162)","rgb(58, 232, 215)"]}},"value":"black"},"opacity":{"condition":{"param":"mySelection","empty":false,"value":1},"value":0.1}},"mark":"circle"}

12345sadnessLevelDiagnosisMedicationTherapytreatment

{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","width":400,"height":400,"data":{"url":"https://nicholesickel.github.io/data.symptoms/ageTreatment.csv"},"encoding":{"x":{"field":"age","type":"quantitative"},"y":{"field":"treatmentFrequency","type":"quantitative"},"shape":{"field":"treatment"},"color":{"field":"treatment"}},"mark":{"type":"point","filled":true,"size":200,"opacity":0.5}}