A frame has a fixed aspect ratio, set by the width and by how many bars are
visible. animate_race() uses this to size its device; use it when drawing
a single frame yourself, so the layout is not stretched.
Arguments
- x
A
ggraceobject fromggrace().- width
Output width in pixels. Defaults to the width the race was built for.
Examples
race <- ggrace(clefts_qci, qci, country, year, top_n = 10)
race_size(race)
#> width height
#> 736 459