I wanted to ask for any general idea about plotting this kind of plot in R which can compare for example the overlaps of different methods listed on the horizontal and vertical side of the plot? Any sample code or something
Many thanks
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.
The corrplot package and
corrplotfunction in that package will create plots similar to what you show above, that may do what you want or give you a starting point.If you want more control then you could plot the colors using the
imagefunction, then use thetextfunction to add the numbers. You can either create the margins large enough to place the text in the margins, see theaxisfunction for the common way to add text labels in the margin. Or you could leave enough space internally (maybe userasterImageinstead ofimage) and usetextto do the labelling. Look at thexpdargument toparif you want to add the lines and thegrconvertXandgrconvertYfunctions to help with the coordinates of the line segents.