Untitled
# Recreate the flowchart and display it # Create a new flowchart flowchart = Digraph("Data_Gathering_Procedures", format="png") flowchart.attr(rankdir="TB", size="10") # Nodes flowchart.node("A", "Preparation Phase", shape="box", style="filled", fillcolor="lightblue") flowchart.node("B1", "Identify research objectives and questions", shape="box") flowchart.node("B2", "Review literature on COVID-19 impact on tricycle drivers", shape="box") flowchart.node("B3", "Design data collection tools (questionnaire/interviews)", shape="box") flowchart.node("C", "Sampling", shape="box", style="filled", fillcolor="lightblue") flowchart.node("C1", "Select participants: Tricycle drivers in Toril, Davao City", shape="box") flowchart.node("C2", "Ensure representative sample (random/purposive)", shape="box") flowchart.node("C3", "Obtain informed consent", shape="box") flowchart.node("D", "Data Collection", shape="box", style="filled", fillcolor="lightblue") flowchart.node("D1", "Survey/Questionnaire Administration", shape="box") flowchart.node("D1a", "Distribute questionnaires", shape="box") flowchart.node("D1b", "Collect responses (face-to-face, online, physical forms)", shape="box") flowchart.node("D1c", "Ensure anonymity and confidentiality", shape="box") flowchart.node("D2", "Interviewing", shape="box") flowchart.node("D2a", "Conduct one-on-one interviews", shape="box") flowchart.node("D2b", "Record and transcribe interviews", shape="box") flowchart.node("E", "Data Organization", shape="box", style="filled", fillcolor="lightblue") flowchart.node("E1", "Organize collected data (survey responses, transcripts)", shape="box") flowchart.node("E2", "Verify completeness and accuracy", shape="box") flowchart.node("F", "Data Analysis", shape="box", style="filled", fillcolor="lightblue") flowchart.node("F1", "Analyze data using statistical/qualitative methods", shape="box") flowchart.node("F2", "Identify patterns and trends in income impact", shape="box") flowchart.node("G", "Report Writing", shape="box", style="filled", fillcolor="lightblue") flowchart.node("G1", "Compile findings into report", shape="box") flowchart.node("G2", "Connect findings to research objectives/literature", shape="box") flowchart.node("H", "Conclusion and Recommendations", shape="box", style="filled", fillcolor="lightblue") flowchart.node("H1", "Summarize main findings", shape="box") flowchart.node("H2", "Provide recommendations on COVID-19 impact & solutions", shape="box") # Connections flowchart.edge("A", "B1") flowchart.edge("A", "B2") flowchart.edge("A", "B3") flowchart.edge("B3", "C") flowchart.edge("C", "C1") flowchart.edge("C", "C2") flowchart.edge("C", "C3") flowchart.edge("C3", "D") flowchart.edge("D", "D1") flowchart.edge("D1", "D1a") flowchart.edge("D1", "D1b") flowchart.edge("D1", "D1c") flowchart.edge("D", "D2") flowchart.edge("D2", "D2a") flowchart.edge("D2", "D2b") flowchart.edge("D2b", "E") flowchart.edge("E", "E1") flowchart.edge("E", "E2") flowchart.edge("E2", "F") flowchart.edge("F", "F1") flowchart.edge("F", "F2") flowchart.edge("F2", "G") flowchart.edge("G", "G1") flowchart.edge("G", "G2") flowchart.edge("G2", "H") flowchart.edge("H", "H1") flowchart.edge("H", "H2") # Save the new flowchart flowchart_path = "/mnt/data/Data_Gathering_Procedures.png" flowchart.render(flowchart_path, format="png", cleanup=True) # Display the image flowchart_img = mpimg.imread(flowchart_path) plt.figure(figsize=(12, 12)) plt.imshow(flowchart_img) plt.axis("off") # Hide axes plt.show()
Leave a Comment