# 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))
