From 1f30df8d941d30ab546421bc56c92c9fa9cf8a59 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Wed, 28 Mar 2018 13:43:39 +0100 Subject: add code used for creating the readme figure --- README.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 1fc8143..60f202f 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,17 @@ classifier in R. ![Pretty picture](./.image.png) +```r +# Plot created with: +> library(gensvm) +> x <- iris[, -5] +> y <- iris[, 5] +> fit <- gensvm(x, y, kernel='rbf', gamma=10, max.iter=5000, verbose=1, + random.seed=123) +> plot(fit, x, y, xlim=c(-5, 5), ylim=c(-5, 5)) +> title("Iris dataset (GenSVM + RBF)") +``` + Introduction ------------ @@ -32,7 +43,9 @@ Installation This package can be installed from CRAN: - install.packages('gensvm') +```r +> install.packages('gensvm') +``` Usage ----- @@ -65,7 +78,9 @@ Citing If you use GenSVM in your work, please cite the paper using the information avialable through the following R command: - citation('gensvm') +```r +> citation('gensvm') +``` Alternatively, you can use the following BibTeX code directly: -- cgit v1.2.3