I'm trying to do a dotplot with my KEEG analysis result for pathways, however, almost every script that has about it needs an FC value to perform the analysis. I don't have this value, because my data came from my miRNA analysis, which generated the targets and then I was able to establish the pathways. I would like to put the routes in a dotplot like this one in the imagem 
These are examples of my data:
I followed a script from a colleague here:
ggplot(df, aes(x=rf,y=pathway_term)) + 
  geom_point(aes(color=pval,size=gene)) + 
  scale_color_gradientn(colours = rainbow(5)) + 
  labs(x='Rich Factor', y=NULL, color='P-value',size='Gene\nnumber' ) + 
  theme( axis.title = element_text(face='bold'), axis.text = element_text (face='bold') )
However, the error appears: Error: Discrete value supplied to continuous scale Could someone help me solve my problem?

 
    