Error Codes when using ggplot in R (And how to fix them)

Error Codes when using ggplot in R (And how to fix them)

3.400 Lượt nghe
Error Codes when using ggplot in R (And how to fix them)
A short video outlining 7 common mistakes/error codes when using ggplot in R. The code used in this video can be found on the following link: https://1drv.ms/u/s!AjV0z-feoMBLhesdJ4FFL9GFuYfJEw See the timestamps below: 0:00 - 1. Colour (or other options) within aesthetics gives unexpected results 1:38 - 2. Error: "Continuous value supplied to discrete scale" 3:16 - 3. Error: "invalid argument to unary operator" 4:14 - 4. Error: "stat_count() can only have an x or y aesthetic" 5:09 - 5. Discrete value not as factor when on x-axis 5:51 - 6. Error: "Insufficient values in manual scale. y needed but only x provided." 7:01 - 7. Error: [geom] requires the following missing aesthetics: x and y