Hello,
I'm having trouble creating a graph that overlays three dot graphs -- based on the values 1, 2, 3 held in 'grade'
I have managed to get the following command to work:
The problem with this command that works is the graph becomes very long and harder to compare the frequency of 'grades' for each 'issue'.
Ideally, all the dots would be overlayed... with grade 1 in green, grade 2 in yellow, and grade 3 in red.
Any help or links on how to accomplish this would be appreciated!
I'm having trouble creating a graph that overlays three dot graphs -- based on the values 1, 2, 3 held in 'grade'
I have managed to get the following command to work:
Code:
graph dot (sum) val, over(issue) over(grade) scale(*.6) ytitle("Frequency") title("Frequency of adverse events over all visits", span)
Ideally, all the dots would be overlayed... with grade 1 in green, grade 2 in yellow, and grade 3 in red.
Any help or links on how to accomplish this would be appreciated!
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str52 issue float grade byte valA "Nausea" 1 1 "Reproductive system and breast disorders" 1 1 "Diarrhoea" 1 1 "Skin and subcutaneous tissue disorders" 1 1 "Gastrointestinal disorders" 1 1 "Gastrointestinal disorders" 1 1 "Reproductive system and breast disorders" 1 1 "Investigations" 1 1 "Diarrhoea" 1 1 "Blood and lymphatic system disorders" 1 1 "Reproductive system and breast disorders" 1 1 "Renal and urinary disorders" 1 1 "Diarrhoea" 1 1 "Respiratory thoracic and mediastinal disorders" 1 1 "Investigations" 1 1 "Gastrointestinal disorders" 1 1 "Reproductive system and breast disorders" 1 1 "Diarrhoea" 1 1 "Gastrointestinal disorders" 1 1 "Respiratory thoracic and mediastinal disorders" 1 1 "General disorders and administration site conditions" 1 1 "Reproductive system and breast disorders" 1 1 "Renal and urinary disorders" 1 1 "Reproductive system and breast disorders" 1 1 "Skin and subcutaneous tissue disorders" 1 1 "Gastrointestinal disorders" 1 1 "Neutrophil count decreased" 1 1 "Skin and subcutaneous tissue disorders" 1 1 "General disorders and administration site conditions" 1 1 "Nausea" 1 1 "Nausea" 1 1 "Reproductive system and breast disorders" 1 1 "Alanine aminotransferase (ALT) increased" 1 1 "Reproductive system and breast disorders" 1 1 "Renal and urinary disorders" 1 1 "General disorders and administration site conditions" 1 1 "Skin and subcutaneous tissue disorders" 1 1 "Renal and urinary disorders" 1 1 "Reproductive system and breast disorders" 1 1 "Respiratory thoracic and mediastinal disorders" 1 1 "Aspartate aminotransferase (AST) increased" 1 1 "Respiratory thoracic and mediastinal disorders" 1 1 "Aspartate aminotransferase (AST) increased" 1 1 "Renal and urinary disorders" 1 1 "Respiratory thoracic and mediastinal disorders" 1 1 "Respiratory thoracic and mediastinal disorders" 1 1 "Skin and subcutaneous tissue disorders" 1 1 "Platelet count decreased" 1 1 "Blood and lymphatic system disorders" 1 1 "Skin and subcutaneous tissue disorders" 1 1 "Blood and lymphatic system disorders" 1 1 "Skin and subcutaneous tissue disorders" 1 1 "General disorders and administration site conditions" 1 1 "Skin and subcutaneous tissue disorders" 1 1 "Blood and lymphatic system disorders" 1 1 "Blood and lymphatic system disorders" 1 1 "Respiratory thoracic and mediastinal disorders" 1 1 "Diarrhoea" 1 1 "Nausea" 1 1 "Reproductive system and breast disorders" 1 1 "Diarrhoea" 1 1 "Gastrointestinal disorders" 1 1 "General disorders and administration site conditions" 1 1 "General disorders and administration site conditions" 1 1 "Reproductive system and breast disorders" 1 1 "Alanine aminotransferase (ALT) increased" 1 1 "Blood and lymphatic system disorders" 1 1 "Blood and lymphatic system disorders" 1 1 "Aspartate aminotransferase (AST) increased" 1 1 "Blood and lymphatic system disorders" 1 1 "General disorders and administration site conditions" 1 1 "General disorders and administration site conditions" 1 1 "Renal and urinary disorders" 1 1 "Gastrointestinal disorders" 1 1 "Gastrointestinal disorders" 1 1 "Hyperglycaemia" 1 1 "Reproductive system and breast disorders" 1 1 "Respiratory thoracic and mediastinal disorders" 1 1 "Respiratory thoracic and mediastinal disorders" 1 1 "Neutrophil count decreased" 1 1 "Skin and subcutaneous tissue disorders" 1 1 "Gastrointestinal disorders" 1 1 "General disorders and administration site conditions" 1 1 "Blood and lymphatic system disorders" 1 1 "Skin and subcutaneous tissue disorders" 1 1 "Reproductive system and breast disorders" 1 1 "Skin and subcutaneous tissue disorders" 1 1 "Blood and lymphatic system disorders" 1 1 "Gastrointestinal disorders" 1 1 "Gastrointestinal disorders" 1 1 "Diarrhoea" 1 1 "Skin and subcutaneous tissue disorders" 1 1 "General disorders and administration site conditions" 1 1 "Nausea" 1 1 "Blood and lymphatic system disorders" 1 1 "Skin and subcutaneous tissue disorders" 1 1 "Renal and urinary disorders" 1 1 "Blood and lymphatic system disorders" 1 1 "Gastrointestinal disorders" 1 1 "Respiratory thoracic and mediastinal disorders" 1 1 end label values grade vomiting6_ label def vomiting6_ 1 "1", modify

Comment