« first day (2201 days earlier)      last day (974 days later) » 

9:50 AM
Opened an issue about it on meta: meta.stackoverflow.com/questions/337075/…
 
10:24 AM
@Thomas From the comment on meta it looks like it's our old friend Hack-R
If anyone is bored, comments welcome on github.com/jumpingrivers/prettyB
 
10:49 AM
@csgillespie Looks interesting. I was puzzled by barplots though -- white lines seem to cut bars in a quasi-meaningful way (like colors for categories), it took me several seconds to realize these are just the y-axis grid. So you may want to tweak that if you agree. Anyway, the package will be most useful, especially if there will be an easy mechanism for custom themes. Starred the repo -- will watch the progress :)
 
@tonytonov Good point about the bar plots. I'll have a think.
Unfortunately, there's no easy way to make themes. It's not meant to compete with ggplot2, instead, I just wanted all my base hacks in one place!
 
11:36 AM
@csgillespie interesting.
@csgillespie Nice idea. At one point I tried to sketch out something akin to this in this (non-working) code: gist.github.com/leeper/9040515 by creating a new plotting function and then passing around "theme" objects (rather than setting globals). All seemed like a lot of work, unfortunately.
 
 
1 hour later…
12:57 PM
@csgillespie You should make sure that your default palette is colorblind friendly. I'm not sure if that's the case for your barplot since I don't have that problem, but I suspect it's not colorblind friendly. I've become more aware of this issue since a colleague complained about not being able to distinguish colors in my plots.
 
1:38 PM
This is ridiculous:
0
Q: R: How to transpose a dataframe in tidyverse?

IrakliUsing the basic R, I can transpose a dataframe, say mtcars: as.data.frame(t(mtcars)) Or with pipes: library(magrittr) mtcars %>% t %>% as.data.frame How to accomplish the same within tidyr or tidyverse packages? My attempt below gives "Error: Duplicate identifiers for rows" library(tidyv...

 
2:37 PM
@Thomas not sure what was going on there but I've removed the syn.
 
3:15 PM
@Thomas Thanks for the gist. My current plan is to create a copy of themes the long way - I've just got a function plot_minimal. After getting my head around what I want to change, I'll refactor into something neater.
@Roland Good point about colour blind palettes.
 
 
2 hours later…
 
2 hours later…
7:21 PM
it uses print ffs, not message and tests the conditions twice, and does them arse-backwards - what kind of weirdo writes if(0==i%%mod1){
 
8:16 PM
C++ weirdos sometimes put a constant on the left side of an '==' to make up for broken compilers that don't warn about assignments within conditionals.
Still a ! seems easier and more expressive.
 

« first day (2201 days earlier)      last day (974 days later) »