... <看更多>
「continuous value supplied to discrete scale」的推薦目錄:
- 關於continuous value supplied to discrete scale 在 [問題] geom_point讀值出錯- 看板R_Language - 批踢踢實業坊 的評價
- 關於continuous value supplied to discrete scale 在 Error: Continuous value supplied to discrete scale - Stack ... 的評價
- 關於continuous value supplied to discrete scale 在 Continuous value supplied to discrete scale error when using ... 的評價
- 關於continuous value supplied to discrete scale 在 Point out which continuous/discrete value was wrongly ... 的評價
- 關於continuous value supplied to discrete scale 在 Introduction to data visualisation with ggplot2 - GitHub Pages 的評價
- 關於continuous value supplied to discrete scale 在 yeguanhuav/visual16S source: R/plot_beta_diversity.R - Rdrr.io 的評價
- 關於continuous value supplied to discrete scale 在 Map with ggplot2 and bubbles - GIS Stack Exchange 的評價
- 關於continuous value supplied to discrete scale 在 Error: Discrete value supplied to continuous scale - GitHub ... 的評價
continuous value supplied to discrete scale 在 Continuous value supplied to discrete scale error when using ... 的推薦與評價
Hi, I got a Continuous value supplied to discrete scale Error when plotting NMDS with trans_beta$plot_ordination(), I think it's because I used the ... ... <看更多>
continuous value supplied to discrete scale 在 Point out which continuous/discrete value was wrongly ... 的推薦與評價
Error: Continuous value supplied to discrete scale. However, finding out which scale would be changed—in this case, ... ... <看更多>
continuous value supplied to discrete scale 在 Introduction to data visualisation with ggplot2 - GitHub Pages 的推薦與評價
scale_colour_viridis_d(option = "plasma"). ## Error: Continuous value supplied to discrete scale. ## Error: Continuous value supplied to discrete scale. ... <看更多>
continuous value supplied to discrete scale 在 yeguanhuav/visual16S source: R/plot_beta_diversity.R - Rdrr.io 的推薦與評價
@param feature2_shape The shape values for feature2. ... prevent "Error: Continuous value supplied to discrete scale" beta_plot[[feature]] ... ... <看更多>
continuous value supplied to discrete scale 在 Map with ggplot2 and bubbles - GIS Stack Exchange 的推薦與評價
"Error: Discrete value supplied to continuous scale". I've used many solutions in blogs but it does not work. This is my first map and the script ... <看更多>
相關內容
continuous value supplied to discrete scale 在 Error: Discrete value supplied to continuous scale - GitHub ... 的推薦與評價
The plotting code gives Error: Discrete value supplied to continuous scale. I am not sure why this error keeps popping out, ... ... <看更多>
continuous value supplied to discrete scale 在 [問題] geom_point讀值出錯- 看板R_Language - 批踢踢實業坊 的推薦與評價
[目的]================================================
已把各點的座標資料轉為如下矩陣:
pm2.5_anime:
[,1] [,2] [,3]
[1,] "74DA3895C4C8" "74DA3895C2A6" "74DA3895C374"
[2,] "24.215748" "24.198088" "24.196424"
[3,] "120.526291" "120.523407" "120.547585"
[4,] "49.3" "57.3" "57.2"
[5,] "49.7" "56.3636363636364" "58.4"
[6,] "50.3" "58.7" "57.8"
pm2.5_anime[1,] -> 是各座標sensor的id
pm2.5_anime[2,]、pm2.5_anime[3,] ->經緯度
pm2.5_anime[4~6,] 是該座標上不同時段的pm2.5的值
希望能把pm2.5的值以geom_point顯示在
ggmap上,並用圖層疊加的方法做出動態地圖的效
但geom_point讀值時出錯QAQ
[程式]================================================
library(ggplot2)
library(ggmap)
library(mapproj)
point_f <- data.frame(lng=pm2.5_anime[3,], lat=pm2.5_anime[2,] ,
siz=pm2.5_anime[4,] )
map <- get_map(location = c(lng=120.601,lat=24.179),
zoom = 10, language = "zh-TW", maptype = "roadmap" ,scale = 1)
ggmap(map)+
geom_point(data= point_f , aes( x =lng , y=lat),size= 10)
[問題!!!]================================================
在geom_point(data= point_f , aes( x =lng , y=lat),size= 10)
這行出問題
錯誤息訊是:
Error: Discrete value supplied to continuous scale
google方法還是沒用,
求大大們幫幫忙
QAQ
還有那段錯誤倒底是什麼意思
>"<
[環境]================================================
R version 3.3.2 (2016-10-31
win7
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.128.101.15
※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1487935237.A.C32.html
我剛有試每個值要丟入pm2.5_anime時,用as.numeric去轉,如:
pm2.5_anime <- matrix(NA,ncol= all_sensor,nrow = 9)
for(i in 1:all_sensor){#make anime matrix
pm2.5_anime[1,i] <- toString( MS_t$device_id[i+1])
pm2.5_anime[2,i] <- as.numeric(MS_t$lat[i+1])
pm2.5_anime[3,i] <- as.numeric(MS_t$lng[i+1])
}
但還是失敗
XD
※ 編輯: rleaner (140.128.101.15), 02/24/2017 19:32:17
感謝撥冗指教
我會先回去補基礎
@@
※ 編輯: rleaner (140.128.101.15), 02/24/2017 20:43:23
... <看更多>