TrelliscopeJS 추가 기능

R에서 Trelliscope로 빅데이터 시각화하기

Ryan Hafen

Author, TrelliscopeJS

Plotly를 활용한 ggplot 패널 인터랙티비티

facet_trelliscope()as_plotly = TRUE를 추가하면 됩니다.

예시:

gap_life <- select(gapminder, year, lifeExp, country, continent)
ggplot(gap_life, aes(year, lifeExp)) +
  geom_point() +
  facet_trelliscope(~ country + continent,
    name = "lifeExp_by_country",
    desc = "Life expectancy vs. year for 142 countries.",
    nrow = 2, ncol = 3,
    as_plotly = TRUE)
R에서 Trelliscope로 빅데이터 시각화하기

Plotly를 활용한 ggplot 패널 인터랙티비티

R에서 Trelliscope로 빅데이터 시각화하기

문맥 기반 자동 코그노스틱

facet_trelliscope()auto_cog = TRUE를 추가하면 됩니다.

예시:

ggplot(gap_life, aes(year, lifeExp)) +
  geom_point() +
  facet_trelliscope(~ country + continent,
    name = "lifeExp_by_country",
    desc = "Life expectancy vs. year for 142 countries.",
    nrow = 2, ncol = 3,
    auto_cog = TRUE)

사용 가능한 자동 코그노스틱에 대한 자세한 내용은 autocogs::autocog 도움말을 참조하십시오.

R에서 Trelliscope로 빅데이터 시각화하기

문맥 기반 자동 코그노스틱

R에서 Trelliscope로 빅데이터 시각화하기

축 한계값

축 한계 범위는 scales 인수로 조정할 수 있습니다.

세 가지 옵션:

  • "same" (기본값)
  • "sliced"
  • "free"
R에서 Trelliscope로 빅데이터 시각화하기

scales = "same"

각 패널의 한계값이 동일합니다.

패널 간 동등한 비교가 가능합니다.

R에서 Trelliscope로 빅데이터 시각화하기

scales = "sliced"

각 패널의 한계값 범위는 동일하지만 시작점은 다를 수 있습니다.

척도 차이 비교에 유용합니다.

R에서 Trelliscope로 빅데이터 시각화하기

scales = "free"

각 패널의 한계값은 해당 패널 데이터의 범위를 기준으로 합니다.

R에서 Trelliscope로 빅데이터 시각화하기

연습해 봅시다!

R에서 Trelliscope로 빅데이터 시각화하기

Preparing Video For Download...