绘制身体热图

问题描述 投票:0回答:1

可以根据身体部位的统计数据将热图应用于此身体图吗?

library(tidyverse)
library(humapr)

body_data <- tibble(loc = c(
  "head", "neck", "chest", "abdomen", "arm",
  "forearm", "hand", "thigh", "leg", "foot"
))

body_data |> 
  humap() +
  geom_body(aes(loc = loc), annotate = NA)

r ggplot2
1个回答
0
投票
library(tidyverse)
library(humapr)

body_data <- tibble(loc = c(
  rep("head", 3), "neck", rep("chest", 6), "abdomen", "arm",
  rep("forearm", 7), "hand", rep("thigh", 8), "leg", "foot"
))

body_data |> 
  humap() +
  geom_body(aes(loc = loc)) +
  scale_fill_viridis_c(option = "H")

创建于 2024-04-02,使用 reprex v2.1.0

© www.soinside.com 2019 - 2024. All rights reserved.