[问题] 上传plotly后 图表X轴分类不见

楼主: sasuke515 (阿猫)   2018-05-09 11:57:42
[问题类型]:
程式咨询(我想用R 做某件事情,但是我不知道要怎么用R 写出来)
[软件熟悉度]:
入门(写过其他程式,只是对语法不熟悉)
[问题叙述]:
s
我想要把交互式的图表放到plotly,
以便合并到PPT上
这是我想要的图表在R studio上呈现的样子
https://i.imgur.com/4T7IN83.jpg
(内部资料,因此把中文分类换成英文字母代替)
但利用api_create()上传到plotly后,
X轴只剩下数字
https://i.imgur.com/BuKRgCi.jpg
请问这要怎么修正呢?
或是有没有别的办法能把交互式的图表放到ppt上呢?
[程式范例]:
s
Point_Comm_Channel <- ggplot(final_Channel_perform_Comm, aes(x = Channel, y = total_Amount, color = Name ))+
geom_point(aes(group = Name),size = 1)+
labs(title = "SKU销售Top 10 in channels",
y = "Total Amount(千)")
这是我画图的程式码
[环境叙述]:
R version 3.4.4 (2018-03-15)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Traditional)_Taiwan.950
[2] LC_CTYPE=Chinese (Traditional)_Taiwan.950
[3] LC_MONETARY=Chinese (Traditional)_Taiwan.950
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Traditional)_Taiwan.950
[关键字]:
u的是谢谢大家,拜托大家了!
作者: kokolotl (nooooooooooo)   2018-05-09 14:19:00
看范例 Point_Comm_Channel 会再ggplotly一次
楼主: sasuke515 (阿猫)   2018-05-09 14:59:00
刚刚尝试了,还是一样没办法耶@@
作者: kokolotl (nooooooooooo)   2018-05-09 16:00:00
原来要加参数,感虾

Links booklink

Contact Us: admin [ a t ] ucptt.com