我想逆转行的默认注释:
library(NMF) #any other packages for this task are welcome
car<-cars
car$p<-sample(1:600, 50)*0.0001
aheatmap(as.matrix(cars[,1:2,drop=FALSE]),annRow =car[,"p",drop=FALSE])
正如您在行注释中所看到的,0代表白色,而更大的数字代表更深的绿色。我希望看到越小的p,越深的绿色(或灰色)。
此外,如果可能的话,大于0.05的p只会呈现白色。
这对我来说真的很有挑战性。谢谢
我正在使用react,我试图用html2canvas和jspdf制作一个pdf。我想给我现在制作的html2canvas a提供输入。当我试图制作pdf时,我会得到以下错误:
index.ts:36 Uncaught (in promise) Error: Element is not attached to a Document
以下是代码:
const input = (<div><h2>Test</h2></div>);
html2canvas(input).then((canvas)=>{
const imgData = c
我有一个二进制数据帧。我想要显示和存储在PDF中使用imshow。我想指定一种自定义的颜色,绿色代表真,红色代表假。我的代码: df =
A B C D E F
0 True True True True True True
1 True True True True True True
2 True False False