Re: [R] Defining Variables from a Matrix for 10-Fold Cross Validation

2018-10-10 Thread Zach Simpson
Hey Matthew, In addition to what's been mentioned, you may want to look at the 'caret' package, as it provides a nice system for whatever flavor of cross-validation you're after *and* has a built-in method for `kknn`: http://topepo.github.io/caret/available-models.html H

Re: [R] getting 21 very different colours

2018-09-11 Thread Zach Simpson
far apart as possible on the palette) to pass to your plot arguments with something like: library(scico) scico(21, palette = 'oleron') Not sure if this works for your case though. But maybe another feature (shape?) could help differentiate the 21 points. Hope this helps, Zach Simpson >

Re: [R] Limit the y-axis line with ggplot2 (not the axis itself, but the line used at the left of the graph)

2016-10-25 Thread Zach Simpson
> Hello everybody, > > Using ggplot2 package, is there a way to force to stop the y-axis line > at a specified point ? (not using ylim because I want that some text > written using annotate() at the top of the graph is > still shown). > > Bellow is a simple example to show

Re: [R] plot many dfs in ggplot (and other ggplot questions)

2016-08-03 Thread Zach Simpson
l#Ribbons Another great ggplot resource is the R graphics cookbook (http://www.cookbook-r.com/Graphs/) One quick note, in future posts to the list it may be better to compile your (related questions) into just one message to avoid cluttering the list. Hope this helps, Zach Simpson ___