# ?? R ????????
x <- 1:10
mean(x)[1] 5.5
1111187888 11111111 ## ???Դ?????
# ?? R ????????
x <- 1:10
mean(x)[1] 5.5
# Python 代码块
import pandas as pd
import numpy as np
df = pd.DataFrame({
'x': [1, 2, 3, 4, 5],
'y': [2, 4, 6, 8, 10]
})
print(df) x y
0 1 2
1 2 4
2 3 6
3 4 8
4 5 10
# library(ggplot2)
ggplot(mpg, aes(x = hwy, y = cty, color = cyl)) +
geom_point(alpha = 0.5, size = 2) +
scale_color_viridis_c() +
theme_minimal()