Comments (5)
请看这里
http://taiyun.github.io/recharts/interface.html#section-3.2.2
安装请使用:
devtools::install_github("taiyun/recharts@dev")
from recharts.
from recharts.
上述链接打不开了,能否请解释一下目前怎么实现双Y轴?
from recharts.
以下是我实现双Y轴绘图的方法:
- 按照要求安装recharts包:
require(devtools)
devtools::install_github('cosname/recharts')
- 在描述坐标轴属性时,规定yAxis有两个内容:
ext<-list(
xAxis=list(
type="category",
data=Date
),
yAxis=list(
list(
type ="value",
name="discharge(m3·s-1)",
splitNumber="5",
min = "0"
),
list(
type = "value",
name = "precipitation(mm)",
inverse="true",
splitNumber ="5",
min ="0"
)
)
) - 描述数据序列时,使用yAxisIndex变量确定该数据序列使用的Y轴:
series<-list(
list(
name= "Qmea",
type ="line",
data = Qmea,
yAxisIndex = "0"
),
list(
name= "Qcal",
type ="line",
data = Qcal,
yAxisIndex = "0"
),
list(
name = "precipitation",
type="bar",
data =P,
yAxisIndex = "1"
)
) - 使用ePlot方法完成绘图:
ePlot(series,ext)
@GofunTR
from recharts.
@c101088 十分感谢!
from recharts.
Related Issues (20)
- Error: could not find function "echartsExample" HOT 5
- eForce 无法画图 HOT 1
- eBar的stackGroup参数无法实现效果 HOT 2
- customize color and shape
- 另一个 R 包实现 HOT 4
- 将示例代码保存在文件中,使用Rscript执行,无法显示地图 HOT 7
- Echarts4.0.0 HOT 1
- 和flexdashboard结合有问题
- 能与之前同名的recharts共存? HOT 1
- 怎么能把对象直接保存成html呢 HOT 1
- shiny 里面地图不显示
- eBar如何设置X轴和Y轴的标题, 以及opt 参数
- Open list option for title like the API
- 如何使用svg渲染生成图形 HOT 2
- 画地图时如何移除地图上的点
- Rstudio为啥不出图?
- Could not find function "eHLine" HOT 1
- Documentation in english
- dataRange无法设置离散映射
- 如何添加events事件?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recharts.