파일:Visualizing Loglog Normal Data.png

testwiki
둘러보기로 이동 검색으로 이동
    원본 파일 (2,400 × 1,200 픽셀, 파일 크기: 439 KB, MIME 종류: image/png)

    이 파일은 위키미디어 공용에 있으며, 다른 프로젝트에서 사용하고 있을 가능성이 있습니다. 해당 파일에 대한 설명이 아래에 나와 있습니다.

    파일 설명

    설명
    English: This image presents two plots generated from a dataset of 10,000 points.

    The first plot, titled 'Concave Line with Log-Normal Noise', displays a scatter plot of the observed data (y_observed) against the independent variable (x). The red line represents the 'Median line', while the blue line is the 'Mean line'. The y-axis is limited to a range of 0 to 20.

    The second plot, titled 'Log-Log Linear Line with Normal Noise', also displays a scatter plot of the observed data against the independent variable, but both axes are on a logarithmic scale. Here, both the mean and median lines are the same (red) line.
    날짜
    출처 자작
    저자 Talgalili
    # Reproducible R code
    
    # Load necessary libraries
    library(ggplot2)
    library(patchwork)
    
    # Set seed for reproducibility
    set.seed(123)
    
    # Generate data
    n <- 10000
    x <- sort(runif(n, min = 1, max = 100))
    intercept <- 0.000001
    slope <- 0.5
    y_true_log <- intercept + slope * log10(x)
    noise <- rnorm(n, mean = 0, sd = .1)
    y_observed_log <- y_true_log + noise
    y_observed <- 10^y_observed_log
    y_true <- 10^y_true_log
    
    # Create data frame
    df <- data.frame(x = x, y_true = y_true, y_observed = y_observed)
    
    # For jupyter notebook
    options(
      repr.plot.width  = 20,   # in inches (default = 7)
      repr.plot.height = 10   # in inches (default = 7)
    )
    
    # Plot data
    p1 <- ggplot(df, aes(x = x, y = y_observed)) +
      geom_point() +
      geom_line(aes(y = y_true, color = 'Median line'), size = 3) +
      geom_smooth(aes(color = 'Mean line'), size = 3, se = F) +
      coord_cartesian(ylim = c(0, 20)) + # Set the limits of the plot without excluding obs
      scale_color_manual(values = c('Median line' = 'red', 'Mean line' = 'blue')) +
      theme_bw() + theme(text = element_text(size = 25)) +
      theme(legend.position="bottom") +
      labs(x = 'X', y = 'Y', title = 'Concave Line with Log-Normal Noise')
    
    p2 <- ggplot(df, aes(x = x, y = y_observed)) +
      geom_point() +
      geom_line(aes(y = y_true, color = 'Mean and Median line'), size = 3) +
      scale_x_log10() +
      scale_y_log10() +
      scale_color_manual(values = c('Mean and Median line' = 'red')) +
      theme_bw() + theme(text = element_text(size = 25)) +
      theme(legend.position="bottom") +
      labs(x = 'X (log scale)', y = 'Y (log scale)', title = 'Log-Log Linear Line with Normal Noise')
    
    p1 + p2 + 
      plot_annotation(
        title = 'Visualizing Loglog Normal Data: Scatter-plots in Original and Log10 Scales',
        theme = theme(plot.title = element_text(hjust = 0.5, size = 40))
      )
    

    라이선스

    나는 아래 작품의 저작권자로서, 이 저작물을 다음과 같은 라이선스로 배포합니다:
    w:ko:크리에이티브 커먼즈
    저작자표시
    이 파일은 크리에이티브 커먼즈 저작자표시 4.0 국제 라이선스로 배포됩니다.
    이용자는 다음의 권리를 갖습니다:
    • 공유 및 이용 – 저작물의 복제, 배포, 전시, 공연 및 공중송신
    • 개작 – 저작물의 개작, 수정, 2차적저작물 창작
    다음과 같은 조건을 따라야 합니다:
    • 저작자표시 – 적절한 저작자 표시를 제공하고, 라이선스에 대한 링크를 제공하고, 변경사항이 있는지를 표시해야 합니다. 당신은 합리적인 방식으로 표시할 수 있지만, 어떤 방식으로든 사용권 허가자가 당신 또는 당신의 사용을 지지하는 방식으로 표시할 수 없습니다.

    설명

    이 파일이 나타내는 바에 대한 한 줄 설명을 추가합니다
    Visualizing Loglog Normal Data: Scatter-plots in Original and Log10 Scales

    이 파일에 묘사된 항목

    다음을 묘사함

    위키데이터 항목 없는 어떤 값

    449,500 바이트

    1,200 화소

    2,400 화소

    badea14e3eff46e669d5a257788e73197e54ebd8

    파일 역사

    날짜/시간 링크를 클릭하면 해당 시간의 파일을 볼 수 있습니다.

    날짜/시간섬네일크기사용자설명
    현재2024년 4월 15일 (월) 12:252024년 4월 15일 (월) 12:25 판의 섬네일2,400 × 1,200 (439 KB)wikimediacommons>TalgaliliUploaded own work with UploadWizard

    이 파일을 사용하는 문서가 없습니다.