{"action":"created","issue":{"url":"https://api.github.com/repos/jokergoo/ComplexHeatmap/issues/193","repository_url":"https://api.github.com/repos/jokergoo/ComplexHeatmap","labels_url":"https://api.github.com/repos/jokergoo/ComplexHeatmap/issues/193/labels{/name}","comments_url":"https://api.github.com/repos/jokergoo/ComplexHeatmap/issues/193/comments","events_url":"https://api.github.com/repos/jokergoo/ComplexHeatmap/issues/193/events","html_url":"https://github.com/jokergoo/ComplexHeatmap/issues/193","id":358732164,"node_id":"MDU6SXNzdWUzNTg3MzIxNjQ=","number":193,"title":"Heatmap annotation color issue","user":{"login":"apaala","id":15892770,"node_id":"MDQ6VXNlcjE1ODkyNzcw","avatar_url":"https://avatars1.githubusercontent.com/u/15892770?v=4","gravatar_id":"","url":"https://api.github.com/users/apaala","html_url":"https://github.com/apaala","followers_url":"https://api.github.com/users/apaala/followers","following_url":"https://api.github.com/users/apaala/following{/other_user}","gists_url":"https://api.github.com/users/apaala/gists{/gist_id}","starred_url":"https://api.github.com/users/apaala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apaala/subscriptions","organizations_url":"https://api.github.com/users/apaala/orgs","repos_url":"https://api.github.com/users/apaala/repos","events_url":"https://api.github.com/users/apaala/events{/privacy}","received_events_url":"https://api.github.com/users/apaala/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-10T18:04:30Z","updated_at":"2018-09-11T13:00:15Z","closed_at":null,"author_association":"NONE","body":"Hey, not sure why sometimes the heatmap annotation picks colors very close together. It does not happen for every dataset in my loop, just for 2, where it will pick very very close shades of the same color.\r\n\r\nCommand:\r\nheatmap_a<-HeatmapAnnotation(df=data.frame(heatmp_a = heatmp_a), annotation_legend_param = list(title=\"Condition\", title_gp = gpar(fontsize = 10, fontface=2, fontfamily=\"Helvetica\")))\r\n\r\nhmap_plot<- Heatmap(resort, show_row_names = FALSE,  name=\"DECounts\", column_title_gp = gpar(fontsize=6), column_title_side = \"bottom\", top_annotation = heatmap_a, row_names_gp = gpar(fontsize = 2), cluster_rows = FALSE)\r\n\r\n==============================\r\nTo elaborate: I am generating heatmaps in a loop and saving like so:\r\n\r\nfile_name = paste(DEOut,i, \"_Hmap_images.png\", sep=\"\")\r\npng(file_name,width = 4, height = 4, units = 'in', res = 300)\r\ndraw(htlistDE)\r\ndev.off()\r\n\r\nIt is changing colors when saving to png, I dont understand why.\r\n\r\nThanks for your help!"},"comment":{"url":"https://api.github.com/repos/jokergoo/ComplexHeatmap/issues/comments/420265580","html_url":"https://github.com/jokergoo/ComplexHeatmap/issues/193#issuecomment-420265580","issue_url":"https://api.github.com/repos/jokergoo/ComplexHeatmap/issues/193","id":420265580,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDI2NTU4MA==","user":{"login":"jokergoo","id":449218,"node_id":"MDQ6VXNlcjQ0OTIxOA==","avatar_url":"https://avatars3.githubusercontent.com/u/449218?v=4","gravatar_id":"","url":"https://api.github.com/users/jokergoo","html_url":"https://github.com/jokergoo","followers_url":"https://api.github.com/users/jokergoo/followers","following_url":"https://api.github.com/users/jokergoo/following{/other_user}","gists_url":"https://api.github.com/users/jokergoo/gists{/gist_id}","starred_url":"https://api.github.com/users/jokergoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jokergoo/subscriptions","organizations_url":"https://api.github.com/users/jokergoo/orgs","repos_url":"https://api.github.com/users/jokergoo/repos","events_url":"https://api.github.com/users/jokergoo/events{/privacy}","received_events_url":"https://api.github.com/users/jokergoo/received_events","type":"User","site_admin":false},"created_at":"2018-09-11T13:00:15Z","updated_at":"2018-09-11T13:00:15Z","author_association":"OWNER","body":"Can you attach the complete code or send to my email address?\r\n\r\nThe random color is fixed after `heatmap_a` and `hmap_plot` are generated."}}
{"actor":{"display_login":"jokergoo"}}