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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

How to create a bar chart from a CSV file with Haskell

2 点作者 adius大约 2 年前

1 comment

acfnaweio23047大约 2 年前
Been there, done that.<p>Here&#x27;s the same functionality in R. Guess who finishes first and takes the afternoon off?<p><pre><code> library(readr) library(dplyr) library(ggplot2) df = read_csv(&#x27;release_data.csv&#x27;) %&gt;% arrange(Date) %&gt;% mutate(days = Date - lag(Date)) p = ggplot(df, aes(x = Date, y = days)) + geom_col(color = &#x27;#008080&#x27;) + scale_x_date(date_minor_breaks = &#x27;1 year&#x27;) + labs(title = &quot;Days since last SQLite release&quot;) ggsave(&quot;days_since_last_sqlite_release.svg&quot;, plot = p, device = &#x27;svg&#x27;, width = 12, height = 7)</code></pre>