Timely Portfolio


 

Picking the Top [0.50]

Posted on March 23, 2017, 5:45 p.m. by Timely Portfolio @ [source]

 

Puts as Protection [0.50]

Posted on March 15, 2017, 8:10 p.m. by Timely Portfolio @ [source]

 

Shorting with Reckless Abandon [0.50]

Posted on Feb. 28, 2017, 6:56 p.m. by Timely Portfolio @ [source]

 

Ooms Magical Polyglot World [0.38]

Posted on July 26, 2016, 5:49 p.m. by Timely Portfolio @ [source]

crossposted from BuildingWidgets Jeroen Ooms (@opencpu) provides R users a magical polyglot world of R, JavaScript, C, and C++. Ooms' Packages metacran provides a list of all Jeroen's CRAN packages.

 

More than anything I would like to feature the new htmlwidget visNetwork. I thought  the example from Minimum Spanning Trees in R applied to currency data (similar to this research paper Minimum Spanning Tree Application in the Currency Market) would be a good way to demonstrate this

 

Extracting Heatmap [0.27]

Posted on March 12, 2015, 4:43 a.m. by Timely Portfolio @ [source]

Inspired by this tweet, I wanted to try to do something similar in JavaScript. Very cool hack: Extracting the original data from a heatmap image with R vector ops #rstats http://t.co/Lbi6FCXdrI pic.twitter.com/LCabkMGjXY— Gregory Piatetsky (@kdnuggets) March 6, 2015 Fortunately, I had this old post Chart from R + Color from Javascript to serve as a reference, and I got lots of help from these

 

A kind reader directed me in a comment on Experiments in Time Series Clustering to this paper. Clustering of Time Series Subsequences is Meaningless: Implications for Previous and Future Research Eamonn Keogh  and Jessica Lin Computer Science & Engineering Department University of California – Riverside http://www.cs.ucr.edu/~eamonn/meaningless.pdf As I said in my last post, I don’t know what

 

Experiments in Time Series Clustering [0.23]

Posted on March 2, 2015, 4:04 p.m. by Timely Portfolio @ [source]

Last night I spotted this tweet about the R package TSclust. Thank you Pablo and Jose for #TSclust - time series clustering package in #rstats !

 

Financial Charts | Pan and Zoom [0.17]

Posted on Feb. 4, 2015, 4:37 a.m. by Timely Portfolio @ [source]

The htmlwidget for Week 2 over at Building Widgets claims to add pan and zoom interactivity to almost all R charts. When we combine pipeR and htmlwidgets, we get a solid result from what I think is fairly elegant

 

Will I fail? [0.13]

Posted on Jan. 2, 2015, 5:33 p.m. by Timely Portfolio @ [source]

I have committed to building an htmlwidget a week in 2015. To isolate and separate the commitment from this blog, I set up a new site Building Widgets and Github repo.

 

Widgets For Christmas [0.30]

Posted on Dec. 30, 2014, 4:53 p.m. by Timely Portfolio @ [source]

For Christmas, I generally want electronic widgets, but after six months of development, all I wanted this Christmas was htmlwidgets, and Santa RStudio/jj,joe,yihui and Santa Ramnath delivered early with this RStudio tweet on December 17th. htmlwidgets: Bring the best of JavaScript data visualization to R http://t.co/a16qlLxuLz #rstats— RStudio (@rstudio) December 17, 2014 The major benefit of

 

Out of Nowhere–Explore Text on a Path [0.13]

Posted on Dec. 11, 2014, 4:04 p.m. by Timely Portfolio @ [source]

I had not really stopped to think of this until I listened to this The Web Ahead podcast with Sara Soueidan. We can find a similar example in Joni "Bologna" Trythall with SVG.

 

No Reason to Read, Just Need an Outlet [0.08]

Posted on Dec. 4, 2014, 7:23 p.m. by Timely Portfolio @ [source]

Don’t intend for this to be a bitch and moan post, and I’m not sure there is really any real objective other than I feel like I need an outlet. However, this business

 

Much Better Animated Paths | Christmas SVG [-0.07]

Posted on Dec. 2, 2014, 11:17 p.m. by Timely Portfolio @ [source]

Just after I made my really ugly animated turkey sketch (see post), I saw this much better set of Christmas icons in the Smashing Magazine Article Freebie Christmas Icon Set from Manuela Langella. While I still remember how to do this, I thought I would use the same techniques in R using rvest + XML + htmltools to animate the paths with vivus.js.

 

I did not intend for this little experiment to become a post, but I think the code builds nicely on the XML + rvest combination (also see yesterday’s post) for working with XML/HTML/SVG documents in R. It all started when I was playing on my iPhone in the Sketchbook app and drew a really bad turkey. Even though, the turkey was bad, I thought it would be fun to combine with vivus.js.

 

Hadley Wickham’s post “rvest: easy web scraping with R” introduces the fine new package rvest very well. The code grabs css information running the fancy new site cssstats.com on my blog site.

 

Secret to Making Things Appear in RStudio Viewer [-0.03]

Posted on Nov. 24, 2014, 10:28 p.m. by Timely Portfolio @ [source]

I am by no means an authoritative source on this, but I think I found out the secret behind htmltools html_print that chooses the RStudio Viewer browser rather than your default browser like utils::browseURL. It appears you just need a temp directory with the pattern starting with viewhtml*.library(htmltools)library(pipeR)#

 

Pipeline to Plot Annual % Change [0.22]

Posted on Nov. 24, 2014, 9:49 p.m. by Timely Portfolio @ [source]

Note, there are a couple different flavors of pipes (see magrittr and pipeR). For now, I choose pipeR.library(quantmod)library(pipeR)library(ggplot2)getSymbols("^GSPC",from="1900-01-01",auto.assign=F) %>>% #get S&P 500 from Yahoo!Finance ( .

 

Update on JGBs versus USTs [0.25]

Posted on Nov. 5, 2014, 3:56 p.m. by Timely Portfolio @ [source]

Given the recent selloff in the Yen, I thought now would be a good time to update my favorite chart from Intended or Unintended Consequences. It appears we are long way from that.

 

Postive Feedback in R with a Little Javascript [-0.10]

Posted on Oct. 22, 2014, 9:03 p.m. by Timely Portfolio @ [source]

For those moments when you need a little positive feedback, some encouragement, or a pat on the back, I thought this might help. I found this from Sweet Alert for Bootstrap forked from Tristan Edwards non-bootstrap SweetAlert.