Re: [問題] plot 3D圖如何標示最大值

看板R_Language作者 (持久戰!!)時間10年前 (2015/09/04 16:25), 10年前編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/4 (看更多)
感謝大大分享 新手還不太理解 熟悉了matrix的function 目前先使用 summary(pred.tmp$maxRRfit) 的方式 來得到最大的RR值以及lag day 先放棄在3D圖上標示@@ ※ 引述《celestialgod (天)》之銘言: : 如果要找最大值可以直接使用optim來做 : 我直接base在andrew大大的程式上寫的.... : findTheMax = optim(c(1,1), : function(x) -predict(mod, data.frame(x=x[1],y=x[2]), type = "response"), : lower = c(1,1), upper = c(9,9)) : findTheMax$par # location of x,y : findTheMax$value # maximum value of z : ※ 引述《andrew43 (討厭有好心推文後刪文者)》之銘言: -- -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 211.76.246.58 ※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1441355130.A.B23.html ※ 編輯: aee36900 (211.76.246.58), 09/04/2015 17:25:08 ※ 編輯: aee36900 (211.76.246.58), 09/04/2015 17:25:45
文章代碼(AID): #1LwLLwiZ (R_Language)
文章代碼(AID): #1LwLLwiZ (R_Language)