Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R 注释的字体大小_R_Annotations_Plotly - Fatal编程技术网

R 注释的字体大小

R 注释的字体大小,r,annotations,plotly,R,Annotations,Plotly,我做了我的想象。一切都很好,我使用注释添加了一个图例标题,只是我希望标题的字体稍微大一点 我在下面粘贴了一个独立的示例。有人能告诉我如何调整“销售地点”的字体吗 库(tidyverse) 图书馆(绘本) 图书馆(潘德尔) df1%布局(边距=列表(t=40,pad=1))%>%布局(图例=列表(x=1,y=0.5)) htmlwidgets::saveWidget(p1,“eggs\u plot.html”) 只需将相应的属性添加到annotations对象: legendtitle <-

我做了我的想象。一切都很好,我使用注释添加了一个图例标题,只是我希望标题的字体稍微大一点

我在下面粘贴了一个独立的示例。有人能告诉我如何调整“销售地点”的字体吗

库(tidyverse)
图书馆(绘本)
图书馆(潘德尔)
df1%布局(边距=列表(t=40,pad=1))%>%布局(图例=列表(x=1,y=0.5))
htmlwidgets::saveWidget(p1,“eggs\u plot.html”)

只需将相应的属性添加到annotations对象:

legendtitle <- list(yref='paper',xref="paper",y=.65,x=1.2, 
                    text="Place of Sale",  showarrow=F, 
                    font = list(size = 24)) 
legendtitle
legendtitle
legendtitle <- list(yref='paper',xref="paper",y=.65,x=1.2, 
                    text="Place of Sale",  showarrow=F, 
                    font = list(size = 24))