# Create a bar plot
ggplot(tags_df, aes(x = reorder(Tag, -Frequency), y = Frequency, fill = Tag)) +
geom_bar(stat = "identity") +
theme(axis.text.x = element_text(angle = 45, hjust = 1)) +
labs(title = "Top 20 Tags across Models", x = "Tag", y = "Count")

ggplot(top_20_tags, aes(x = reorder(pipeline_tag, -n), y = n)) +
geom_bar(stat = "identity", fill = "skyblue", color = "black") +
labs(title = "Top 20 Pipeline Tags", x = "Pipeline Tags", y = "Count") +
theme(axis.text.x = element_text(angle = 45, hjust = 1))

ggplot(access_counts_df, aes(x = "", y = Freq, fill = Var1)) +
geom_bar(stat = "identity", width = 1, color = "white") +
geom_text(aes(label = ifelse(percentage >= threshold, paste0(round(percentage, 1), "%"), "")),
position = position_stack(vjust = 0.5), color = "black", size = 7) +
coord_polar("y") +
labs(title = "Public Vs Private Repository") +
scale_fill_manual(values = c("Public" = alpha("blue" , 0.5), "Private" = "red")) +
theme_void()
