I am trying to develop a shiny app in which I am giving the user an option to upload a data file (CSV or txt). Then I want to render a ggplot or plotly from this data. There are various columns in that dataset. So, I need to render various Plots, and they are to be rendered by the user selecting the columns in that dataset to be x-axis data and y-axis data. I have provided options to the user to select the data column for x and y axes. But, when I feed the data columns selected by the user for plotting, the output does not show any graph.
code for my plot:
df <- mtcars
ggplot(df, aes(x, y)) +
geom_point(aes(color='blue'))
should I use aes or aes_string to render the columns from the uploaded data?