Skip to content

Instantly share code, notes, and snippets.

@icyee
icyee / glmnet.R
Created March 9, 2017 02:11 — forked from xccds/glmnet.R
library(ggplot2)
library(glmnet)
library(reshape2)
# 读入数据
data <- read.csv('d:/ex2data2.txt',F)
# 散点图
ggplot()+
geom_point(data=data,aes(V1,V2,colour=factor(V3),
shape=factor(V3)),size=3)