Public
Edited
Jun 6, 2023
1 fork
Importers
4 stars
Insert cell
Insert cell
Insert cell
Insert cell
summary(cars, { ignoreNonNumeric: true })
Insert cell
corMatrix = cor(cars)
Insert cell
corrplot(corMatrix)
Insert cell
cor(cars.map(row => row.Miles_per_Gallon), cars.map(row => row.Horsepower), {
test: true
})
Insert cell
vari(cars.map(row => row.Cylinders))
Insert cell
Insert cell
cov(cars.map(row => row.Miles_per_Gallon), cars.map(row => row.Horsepower))
Insert cell
cov(
cars.map((row) => row.Miles_per_Gallon),
cars.map((row) => row.Cylinders)
)
Insert cell
variancesAndCovariances = cov(cars)
Insert cell
corrplot(variancesAndCovariances, { test: 'Covariance', domain: [-100, 100] })
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
View(variancesAndCovariances)
Insert cell
View([[1, 2, 3], [3, 4, 5], [6, 7, 8, 9, 10]])
Insert cell
hist(cars.map((car) => car.Cylinders))
Insert cell
import { data } from "@d3/histogram"
Insert cell
plot(dataset2)
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
plot([1, 2, 3])
Insert cell
dataset2 = [
{ x: -3, y: 7.5 },
{ x: -2, y: 3 },
{ x: -1, y: 0.5 },
{ x: 0, y: 1 },
{ x: 1, y: 3 },
{ x: 2, y: 6 },
{ x: 3, y: 14 }
]
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more