I want to plot country names sorted alphabetically, where Argentina is at the top. When I change arrange(Country) to arrange(desc(Country)) the data frame is sorted in descending order but ggplot plots the same.
# Turbines and manufacturers
library(XML)
library(dplyr)
library(ggplot2)
data_url <- "http://www.thewindpower.net/turbines_manufacturers_en.php"
doc <- htmlParse(data_url)
data <- readHTMLTable(doc,
                  colClasses = c("character","character","character"),
                  trim = TRUE,
                  which = 6
                  )
plot_data <- data %>%
    filter(Country != "") %>%
    group_by(Country) %>%
    summarise(Freq = n()) %>%
    arrange(Country)
# A bar graph
ggplot(plot_data, aes(Country , Freq,  fill=Country)) + 
    coord_flip() +
    geom_bar(stat="identity", width=.90) + 
    xlab("") + # Set axis labels
    ylab("") + 
    guides(fill=FALSE) +
    ggtitle("Number of Turbine Manufacturers by Country") + 
    theme_minimal()

 
    
