You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently working on generating SNP density plots using the CMplot package in R. I have successfully created the plots, but I'm facing a challenge in modifying the color legend and density values displayed in the bottom right corner of the plot.
Specifically, I would like to customize the color legend to show different colors corresponding to specific density ranges, and I also want to modify the density values displayed in the legend. Currently, the legend automatically generates breaks and labels based on the data, but I would like to manually set my own density ranges and corresponding labels.
I have reviewed the documentation and explored various options, but I couldn't find a straightforward way to achieve this customization. I would greatly appreciate your guidance on how to modify the color legend and density values in the SNP density plot using the CMplot package.
Could you kindly provide me with step-by-step instructions or sample code on how to customize the color legend and density values in the CMplot SNP density plot? Specifically, I would like to specify my own density ranges (e.g.,110,200,300,400,500.,,,like this) and assign custom colors to each range in the legend. Additionally, I would like to manually set the density values displayed in the legend instead of relying on the automatic labeling.
Thanks
CHAO
The text was updated successfully, but these errors were encountered:
Thank you for the feedback.
I am not quite sure if the current version of CMplot can meet your requirements. I will have a check, and feed back to you here once finished.
Dear YinLiLin ,
I am currently working on generating SNP density plots using the CMplot package in R. I have successfully created the plots, but I'm facing a challenge in modifying the color legend and density values displayed in the bottom right corner of the plot.
Specifically, I would like to customize the color legend to show different colors corresponding to specific density ranges, and I also want to modify the density values displayed in the legend. Currently, the legend automatically generates breaks and labels based on the data, but I would like to manually set my own density ranges and corresponding labels.
I have reviewed the documentation and explored various options, but I couldn't find a straightforward way to achieve this customization. I would greatly appreciate your guidance on how to modify the color legend and density values in the SNP density plot using the CMplot package.
Could you kindly provide me with step-by-step instructions or sample code on how to customize the color legend and density values in the CMplot SNP density plot? Specifically, I would like to specify my own density ranges (e.g.,110,200,300,400,500.,,,like this) and assign custom colors to each range in the legend. Additionally, I would like to manually set the density values displayed in the legend instead of relying on the automatic labeling.
Thanks
CHAO
The text was updated successfully, but these errors were encountered: