I have students results data of 93 students. I want to draw a graph between a students aggregate percentage and the top scorer of the class. Can you help me out in that way?
It's hard to help you any further if you don't provide a reproducible example.
I think this could be a good resource to get you started with data visualization.
# Reading a csv file with 1300 records
ra=read.csv("resanal.csv")
# Obtaining subset of the data with a specific sem no. and group of study and calculated the total score and average score for each student.
ra2=subset(ra,SEMNO.==1 & GROUP=="M.S.CS.")
ra2=ra2[-c(10:19,29,38:50)]
ra2$TOTAL=rowSums(ra2[c(18,21:22,25:26)])
ra2$AVG=round(ra2$TOTAL/4,digits = 2)
# Then i found the max. average score
maxavg=max(ra2$AVG)
Now i want to draw a multiple bar diagram between the avg. score of a student and max. avg. score. Please help me out.
We are more inclined towards helping you with the things that you have already tried, and I see in your code that you have not even tried to made a plot, so, please read the resource I advised you before and at least try to made the plot you want, that way we can have a better understanding of what are you trying to accomplish.
I'm going to insist about the reproducible example, your example code is not actually reproducible since we dont have access to your .csv file, you can include some example data to your reprex using datapasta package, here is a blog post by Mara that explains really well how to do it.