Skip to Content
R Cookbook
book

R Cookbook

by JD Long, Paul Titer, Jee -Won Lee
May 2022
Beginner to intermediate
667 pages
16h 17m
Korean
Insight
Content preview from R Cookbook
R
368
10장 그래픽스
󺋇󺺋󽴔󽴛󽴔󼟷󼌧󻮛󼔻󺹋󽴔󻕻󻭸󼨫󽴔󺗳󽴔󺃫󻰧󽴔󺋇󺱧󼧓
이미지를 열 순서로 놓으려면
byrow=FALSE
plot_layout
에 전달하면 된다.
g1 + g2 + g3 + g4 + plot
_
layout(ncol = 2, byrow = FALSE)
󺠣󽴔󻨛󻨓󻇃󺋿
레시피
8
.
11
에도 이와 유사하게 밀도 함수들을 그리는 예시가 나와 있다.
레시피
10
.
9
에는 면 분할(
facet
) 함수로 그래프 행렬을 생성하는 방법이 나와 있다.
grid
패키지와
lattice
패키지에도 기본 그래픽으로 다중 그래프 레이아웃을 만드
는 방법과 관련한 추가적인 도구가 있다.
10.26
󺋇󺱧󼧓󺹋󽴔󼟛󻱋󻪟󽴔󻦿󺋿
󻀇󻳫
그래픽들을
PNG
,
JPEG
또는
PostScript
등의 파일로 저장하고 싶다.
󼩃󺅿󼄔
ggplot
에서 출력된 이미지들은
ggsave
를 통해 파일로 저장할 수 있다. 파일 이름만
지정하면,
ggsave
는 자동으로 크기와 파일 형식을 유추하여 저장한다.
R Cookbook 2판_최종.indd 368 21. 4. 27. 오전 11:07
Cookbook
369
10.26 그래프를 파일에 쓰기 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

R Cookbook

R Cookbook

Paul Teetor
R Graphics Cookbook

R Graphics Cookbook

Winston Chang
R Cookbook, 2nd Edition

R Cookbook, 2nd Edition

JD Long, Paul Teetor

Publisher Resources

ISBN: 9788966262984