School.DBN Date Enrolled Absent
Length:277153 Min. :57223-06-10 Min. : 1 Min. : 0.0
Class :character 1st Qu.:57224-01-05 1st Qu.: 329 1st Qu.: 23.0
Mode :character Median :57248-09-11 Median : 476 Median : 38.0
Mean :57239-03-03 Mean : 597 Mean : 50.5
3rd Qu.:57249-06-19 3rd Qu.: 684 3rd Qu.: 59.0
Max. :57250-01-21 Max. :5955 Max. :2151.0
Present Released week
Min. : 1.0 Min. : 0.000 Min. : 1.00
1st Qu.: 291.0 1st Qu.: 0.000 1st Qu.:13.00
Median : 430.0 Median : 0.000 Median :27.00
Mean : 544.5 Mean : 1.983 Mean :27.22
3rd Qu.: 640.0 3rd Qu.: 0.000 3rd Qu.:40.00
Max. :5847.0 Max. :5904.000 Max. :53.00
ggplot(weekly_data, aes(x =factor(week), y = School.DBN, fill = avg_present)) +geom_tile() +scale_fill_gradient(low ="yellow", high ="red") +labs(title ="Student Attendance Heatmap",x ="Weeks",y ="Schools",fill ="Avg Present") +theme_minimal() +theme(axis.text.y =element_blank())
ggplot(attendance, aes(x = Date, y = Present)) +geom_line(color ="blue") +labs(title ="Attendance Trend Over Time",x ="Date",y ="Present")