how to plot pixel?

as.raster(c(0,1,0))
[,1]
[1,] "#000000"
[2,] "#FFFFFF"
[3,] "#000000"

plot(as.raster(c(0,1,0)))

See the FAQ: How to do a minimal reproducible example reprex for beginners.

I solved thank you.. I just need to expanse plot tab in Rstudio