TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A new ggplot is here

31 点作者 avyfain将近 9 年前

3 条评论

quantumtremor将近 9 年前
&gt; aes(x=&#x27;np.log(B - A)&#x27;)<p>I never understood the pattern of putting source code in a string. Why not just use np.log(B - A) directly and configure the function to accept columns? With strings you lose highlighting, semantic analysis from editors, as well as the ability to know what computations are happening when and where. There seems to be no point and significant drawback to this, what&#x27;s the rationale?
评论 #12058974 未加载
评论 #12058246 未加载
minimaxir将近 9 年前
Important clarification: this refers to the Python port of ggplot2, not the R package itself.
评论 #12058198 未加载
评论 #12058475 未加载
carlmcqueen将近 9 年前
Context would be nice, looked through it baffled until I realized this was a port of the Grammar of Graphics to Python to work and look exactly like Hadley&#x27;s ggplot.<p>I learned R because of my frustrations where Panda&#x27;s was years ago, seeing this kind of port continues to make me think about moving back to Python from start to finish.
评论 #12058600 未加载