r - Plotting true vs predicted per country
问题描述
all. It’s me again. I’m looking to plot predicted and actual per country. This is how the test data looks
structure(list(UserLocation = structure(c(3L, 3L, 3L, 3L, 3L,
3L, 3L, 3L, 3L, 3L), .Label = c("AT", "BE", "DE", "FR", "IT",
"NL"), class = "factor"), FriendsLocation = structure(c(3L, 3L,
3L, 4L, 4L, 4L, 3L, 5L, 3L, 6L), .Label = c("AT", "BE", "DE",
"FR", "IT", "NL"), class = "factor"), scaledsci = structure(c(3L,
3L, 3L, 1L, 2L, 1L, 3L, 2L, 3L, 2L), .Label = c("[-2.34898,-0.83219]",
"(-0.83219,0.684599]", "(0.684599,2.20139]", "(2.20139,3.71818]"
), class = "factor"), Distancekm = structure(c(1L, 1L, 1L, 1L,
2L, 2L, 1L, 2L, 1L, 4L), .Label = c("[47.2511,5001.27]", "(5001.27,9955.3]",
"(9955.3,14909.3]", "(14909.3,19863.3]"), class = "factor")), row.names = c(NA,
10L), class = "data.frame")
This is how the predicted data looks
structure(c(3L, 3L, 3L, 1L, 1L, 1L, 3L, 2L, 3L, 2L), .Label = c("[-2.34898,-0.83219]",
"(-0.83219,0.684599]", "(0.684599,2.20139]", "(2.20139,3.71818]"
), class = "factor")
What I would like to have is to plot the predicted vs actual scaledsci per country. I do now know how to do this. Could someone please help me with this?
解决方案
推荐阅读
- keras - keras中的矩阵时间向量
- amazon-web-services - 我想定期将文件从本地服务器推送到 AWS S3
- css - 使用 Node.js (Ubuntu 18.04) 将 CSS 和图像链接到我在远程 Express 服务器上的 EJS 模板
- ckeditor - CK编辑器。光标在起始位置且没有选择时如何区分window.getSelection()
- javascript - 在这种情况下,如何使用 Firebase Cloud Functions 避免承诺嵌套?
- mongodb - 无法通过 kubectl port-forward 连接到 mongodb 副本集
- c# - 有没有办法指定如何解析 Newtonsoft.Json 中的某些属性?
- c# - Android Xamarin 检测从任务管理器开始
- java - 与 mockito 模拟交互时出现 ClassCastException
- javascript - 如何在没有内联样式的情况下使用 Javascript 在表单上放置颜色高亮?