http://dcmetrometrics.com/data
This data is released under the ODC Open Database License (ODbL) v1.0. http://opendatacommons.org/licenses/odbl/summary/
Contact: Lee Mendelowitz Lee.Mendelowitz@gmail.com
http://dcmetrometrics.com/data
This data is released under the ODC Open Database License (ODbL) v1.0. http://opendatacommons.org/licenses/odbl/summary/
Contact: Lee Mendelowitz Lee.Mendelowitz@gmail.com
# The question: why does make.plot.1 cause an error? | |
# make.plot.2 and make.plot.3 work ok. | |
# | |
# I'm trying to use ggplot to make a scatter plot with | |
# with size mapped to the "s" variable in the dataframe. | |
# When I try to draw circles on top of the scatter plot using geom_path, I get | |
# errors. | |
# The plot works if I choose to not map size or not to draw the circles. | |
# Make a dataset where Y is cubic in X, plus noise: | |
n <- 1000 | |
x <- runif(n) | |
x <- sort(x) | |
eps <- rnorm(n) | |
beta <- c(1, 2, 3) | |
X <- poly(x, 3, raw = TRUE) | |
y <- X %*% beta + eps | |
# Fit the data |
class wrap_file_function(object): | |
""" | |
Wrap a function which takes a file or a str as it's first argument. | |
If a str is provided, replace the first argument of the wrapped function | |
with a file handle, and close the file afterwards | |
Example: | |
@wrap_file_function('w') | |
def write_hi(f): |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Playing with Enter and Update</title> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<style> | |
p { | |
color: black; | |
} |