Graphing Functions in R using ggplot()

preview_player
Показать описание
Let's learn how to graph functions in R using ggplot!
If this vid helps you, please help me a tiny bit by mashing that 'like' button. For more #rstats joy, crush that 'subscribe' button!
Рекомендации по теме
Комментарии
Автор

Neat! I was using curve() from base R. This is much simpler.

haraldurkarlsson
Автор

Thank you for this
suppose you got sales data.

you got items sold, their quantity and value

if I were in excel I would make a bar plot for the value, i.e. sales value, and volume/quantity of items sold as line chart combined with the previous but the latter would use a secondary axis

now, I know such a thing is possible by mapping different data to different geoms but I am facing an issue visualising the quantity on a line chart

any ideas?
x-axis would have categorical labels and the other numeric

ahmedJaber