1

私はggplotが初めてです。この方法でドットプロットを作成しようとしています。

https://stackoverflow.com/a/20621581/229075

今のところあまり運がありません。以下の私のトライアル

df=DataFrame({'label':['a','b','c'],'value':[7,2,4]})
ggplot(aes(x="value",y="label"),df) + geom_point()

このエラーが表示されます

C:\Anaconda\lib\site-packages\numpy\core\numeric.pyc in asanyarray(a, dtype, order)
    510 
    511     """
--> 512     return array(a, dtype, copy=False, order=order, subok=True)
    513 
    514 def ascontiguousarray(a, dtype=None):

ValueError: could not convert string to float: a

Rのggplotでいくつかのドキュメントを検索しました。また、次のような構成を使用する際に問題があります

stat="identity"
coord_flip()
geom_bar(weight=?)

これらはまだ実装されていませんか?

Python ggplot バージョン 0.5.0 を使用しています。

4

0 に答える 0