参考:https://www.cnblogs.com/emanlee/p/5373649.html
先放一个gallery里的例子
# library |

然后改theme里的
legend.key.size
就好了last_plot() + theme(legend.key.size = unit(0.1, "inches")) |

图例就变小了。然后还可以通过调整
legend.margin
来调整图例四周的空白区域的大小,这在把图例嵌入到图中时很有用。
参考:https://www.cnblogs.com/emanlee/p/5373649.html
先放一个gallery里的例子
# library |
legend.key.size
就好了last_plot() + theme(legend.key.size = unit(0.1, "inches")) |
legend.margin
来调整图例四周的空白区域的大小,这在把图例嵌入到图中时很有用。
Except as otherwise noted, this blog is licensed under CC BY-SA 4.0 License.
©2021-
searchstar
|
pv
|
uv
Theme Tree
by Wu Jun
Powered by Hexo