Open ghost opened 5 years ago
Hi Ananda,
the displaced heatmap or cartoon usually happens if the cartoon is not drawn for the same sample as the target to which you align your images.
I think the easiest way to resolve your legend position problem is to increase the size of your plotting window or exporting to a pdf or jpeg with greater resolution.
Does that solve your problems? If not, please consider sharing me a dropbox with a couple of images and I can check what might be happening.
Best,
Steven
"Saudações",
My name is Ananda Martins and I am starting to use patternize now. I am trying to run some analysis with my own data (Heliconius wings) and for some phenotypes I get a great heat map but for others I get a mismatch between the outline of the wing and the heatplot. Also, for some of the analysis the color bar scale is right on the middle of the wing. How could I correct that?
I would appreciate any tips.
The script I am trying to run is
colfunc <- plasma (50) plotHeat(summedRaster_RedYellow_red_RGB, IDlist_Red_Yellow, plotCartoon = TRUE, refShape = 'target', outline = FD_Out_77_ITA, landList = RedYellow_landmarkListFD, adjustCoords = TRUE, imageList = RedYellow_imageListCalibrated, cartoonID = '77_ITA', cartoonOrder = 'under', cartoonFill = 'whitesmoke', colpalette = colfunc, legendTitle = ' ', cartoonCol = "black", main = 'Red | Yellow phenotype - Red pattern', flipOutline = 'y', flipRaster = 'yy')