I have two columns that I would like to plot in a bar chart: "Property_type" and "Price". Using the code below, I will plot the "total price" instead of the "median price" for each property type. Could you help me fix the code?
theme_set(theme_bw())
# Draw plot
ggplot(data, aes(x=Property_type, y=Price)) +
geom_bar(stat="identity", width=.5, fill="tomato3") +
labs(title="Ordered Bar Chart",
subtitle="Average Price by each Property Type",
caption="Image: 5") +
theme(axis.text.x = element_text(angle=65, vjust=0.6))