У нас вы можете посмотреть бесплатно Increase & Decrease Number of Axis Ticks (2 Examples) | Base R & ggplot2 Plot | scale_x_continuous() или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
How to change the number of axis tick marks in a plot in the R programming language. More details: https://statisticsglobe.com/increase-... R code of this video: set.seed(345286754) # Create example data frame data <- data.frame(x = rnorm(1000, 10, 100), y = rnorm(1000, 10, 100)) head(data) # Print head of example data frame plot(data$x, # Base R plot with default axis ticks data$y) plot(data$x, # Base R plot with manual axis ticks data$y, xaxp = round(c(min(data$x), max(data$x), 20))) install.packages("ggplot2") # Install & load ggplot2 package library("ggplot2") ggp <- ggplot(data, aes(x, y)) + # Create ggplot2 scatterplot geom_point() ggp # Draw ggplot2 scatterplot ggp + # Change axis ticks scale_x_continuous(breaks = round(seq(min(data$x), max(data$x), by = 50))) ggp + # Assign pretty axis ticks scale_x_continuous(breaks = scales::pretty_breaks(n = 20)) Follow me on Social Media: Facebook – Statistics Globe Page: / statisticsglobecom Facebook – R Programming Group for Discussions & Questions: / statisticsglobe Facebook – Python Programming Group for Discussions & Questions: / statisticsglobepython LinkedIn – Statistics Globe Page: / statisticsglobe LinkedIn – R Programming Group for Discussions & Questions: / 12555223 LinkedIn – Python Programming Group for Discussions & Questions: / 12673534 Twitter: / joachimschork Music by bensound.com