I was wondering how I could go about creating an opaque legend box in R for my plots? I’ve tried using bg=”grey”, but the lines on the graph are still covering the legend.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You have to use bg=”white” (or any other color, as you already did) and you have to draw the legend after you plot the lines/points/grid/etc.
For example: