ggplot function error – General

So I have been trying to visualize my data using ggplot. I used the following command:

ggplot(data = inv_database, 
       mapping= aes(x = Gender,y = Total.Monthly.Income))+
  geom.point(size=5)+
  geom.line(colour="red")

The response I am getting;

Error in ggplot(data = inv_database, mapping = aes(x = Gender, y = Total.Monthly.Income)) : 
  could not find function "ggplot"

Prior to that I installed the following packages:

install.packages("rlang") 
install.packages("ggplot2", dependencies = TRUE)
install.packages("tidyverse", dependencies = TRUE)

Can someone please tell me what’s going wrong here?

Read more here: Source link